I have applied following code.
$postcode = $_POST['postcode'];
$title = $_POST['term'];
$args = array('post_type' => 'product','meta_query' => array( array( 'key' => 'custom_field_ID_1','value' => $postcode,'compare' => 'LIKE' )));
$the_query = new WP_Query( $args );
echo"<pre>";print_r($the_query);echo"</pre>";
But showing result according to meta value not for post title. Please let me know solutions...
you can use post title into
wp_query
by adding this tofunctions.php
file:now add search_title into your
wp_query
argumentas: