- This topic has 4 replies, 2 voices, and was last updated 2 years, 9 months ago by .
I am trying to execute a meta_query using the MB Custom Tables extension. I can echo the values from the table just fine and a standard archive works too, but when I try to build a custom query using a meta_query, I get no results.
Here is the query that works when using the post_meta table but not when using the custom table.
$query_args = array ( 'post_type' => 'obh_note', 'orderby' => 'meta_value', 'meta_key' => 'obh_note_date_time', 'order' => 'ASC', 'meta_query' => array( array( 'key' => 'obh_note_associated_members', 'value' => $post->post_author, 'compare' => 'LIKE', ) ) ); //The query $member_notes = new WP_Query( $query_args );
Am I missing something?
Chúc Mừng Năm Mới!!
- You must be logged in to reply to this topic.