can any one tell me that how can i make a query which search in two table. if not found in post table , search in postmeta table.
-
$where .= ' AND ((' . $wpdb->posts . '.post_title LIKE '.$search_term.') OR ('. $wpdb->postmeta. '.meta_value LIKE '.$search_term.'))';– Mohd HasanCommented May 10, 2018 at 9:32
-
Possible duplicate of Using meta query ('meta_query') with a search query ('s')– Jacob PeattieCommented May 10, 2018 at 12:03
Add a comment
|