WP_Query
-
I have he following query:
$the_query = new WP_Query(array(
‘showposts’ => 1,
‘post_type’ => ‘post’,
‘post_status’ => ‘publish’,
‘meta_key’ => ‘lead_item_order’,
‘meta_value’ => ‘2’,
‘wp_terms.name’ => ‘News’
));I am a newbie to wordpress. Can someone please tell me why this does not return the correct post?
Any help will be appreciated.
Thanks
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘WP_Query’ is closed to new replies.