WordPress Contact Form 7 Redirect To Thank You Page

How To Redirect Visitors To A “Thank You” Page In Contact 7 for WordPress:

Go To WordPress dashboard and go to Contact Form 7 plugin settings page (click contact in your dashboard).  Find ‘Additional Settings’ at bottom of your form page and insert the following code:

on_sent_ok: "location.replace('http://www.yourwebsiteaddress.co.uk/thankyou/');"

Save form

Now visitors will be successfully redirected to your custom thank you page when they fill in your WordPress Contact 7 form.

HOW TO IMPORT A WORDPRESS BLOG INTO BLOGGER

1. Login to your WordPress account and navigate to the Dashboard for the blog that you’d like to transfer to Blogger. Click on the Tools tab > Export link, then download the WordPress WXR export file by clicking on Download Export File and save this file to your local machine.

2. Go to WordPress2Blogger, browse to that saved document and click Convert and save that file to your local machine. In this file will be the contents of your posts/comments from WordPress in a Blogger export file.

3. Then from your dashboard: Settings > Basic tab and click “Import” to import the converted file.

How to fetch posts from custom posts type with custom taxonomy

suppose custom taxonomy name is "dp-cat".
custom category name is "Industrial".
and custom post type "design-port".

<?php

$current_tab_cat="Industrial";

$args = array('post_type' => 'design-port', 'dp-cat' => $current_tab_cat);

$loop = new WP_Query( $args );

global $post; while ( $loop->have_posts() ) : $loop->the_post();

$post_id=$post->ID;

the_title();

endwhile;

?>

Import a CSV File Using PHP and MySQL

 <?//get the csv file
$file = $_FILES[csv][tmp_name];
$handle = fopen($file,”r”);

//loop through the csv file and insert into database
do {

if ($data[0]) {
mysql_query(“INSERT INTO contacts_tmp (contact_first, contact_last, contact_email) VALUES
(
‘”.addslashes($data[0]).”‘,
‘”.addslashes($data[1]).”‘,
‘”.addslashes($data[2]).”‘
)
“);
}

} while ($data = fgetcsv($handle,1000,”,”,”‘”));

?>

Choose your file:

Export MySql Data to a csv file using php

<?
$filename = $sitename . ‘my csv.’ . date( ‘Y-m-d-H-i-s’ ) . ‘.csv’;

header( ‘Content-Description: File Transfer’ );
header( ‘Content-Disposition: attachment; filename=’ . $filename );
$fields=”ID”.”,”.”Property_Title”.”,”.”Description”.”,”.”property_type”.”,”.”location”.”n”;
$data=””;
$querypl= “SELECT * FROM mytable”;
$resultsrows = mysql_query($querypl);
while($rowpl = mysql_fetch_array($resultsrows))
{
$ID=$rowpl[‘ID’];
$property_title=$rowpl[‘property_title’];
$property_desc=$rowpl[‘property_desc’];
$property_type=$rowpl[‘property_type’];
$location=$rowpl[‘location’];

$data .= $ID”.”,”.$property_title.”,”.$property_desc.”,”.$property_type.”,”.$location.”n”;
}

echo $fields.$data;
exit;

?>