Need to do a custom search by meta key
-
Hi,
I’m using your awesome plugin to store my data into a custom table only (not in postmeta) and I need to do custom search using wp_query;
here’s my code :$args = array( 'post_type' => 'event', 'post_status' => array('publish'), 'meta_key'=>'location', 'meta_value'=>'de' ); $posts = new WP_Query($args);
but the results seems to be empty, I assume it’s because I’m not storing data into the postmeta table.
is there a way (other than wpdb…) to overcome this case ?
thanks a lot for your help
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Need to do a custom search by meta key’ is closed to new replies.