want to query 100 posts, but only those which do not have a featured image attached. I am using meta_key method for this with WP_Query as such:
$args = array(
'post_type' => 'post',
'posts_per_page' => 100,
'meta_query' => array(
array(
'key' => '_thumbnail_id',
'compare' => 'NOT EXISTS'
),
)
);
But Not work with me
Any help ?
if(!has_post_thumbnail())
– user93819 Jul 21 '16 at 2:33