Support » Fixing WordPress » post_count for only posts with thumbnail

  • Resolved elkebirmed

    (@elkebirmed)


    how to edit this condition in order to count only the posts with thumbnails?

    if ( $my_query->have_posts() && ( ( $my_query->post_count ) >= 3 ) )

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘post_count for only posts with thumbnail’ is closed to new replies.