WP_Query is skipping a meta_key
-
I am trying to override the default WordPress query to query a specific post type at a specific time. This is the code I am using to override it.
$args = array( 's' => $searchParam, 'post_type' => "paper" ); $post_query = new WP_Query($args);
I printed out the results of that query because I am not getting the expected results and it is skipping one of the meta_keys in wp_postmeta. There are 5 keys (created as custom fields from the admin dashboard: author, pub_info, year, link, and keywords and the query only compares the search parameter to the first 4. Anyone know why this is happening or how to fix it
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WP_Query is skipping a meta_key’ is closed to new replies.