Oddbean new post about | logout
 I have 399 blog posts which don't have a featured image.

Guess that's my weekend sorted!

Here's a one-liner for WP CLI which will find them and print out in a pretty-ish format.

```
foreach (get_posts( array( 'post_type' => 'post', 'post_status' => array('publish'), 'posts_per_page' => -1,) ) as $post) { if(get_the_post_thumbnail($post)== "") { echo $post->post_date . " " . $post->guid . " " . $post->post_title . "\n"; } }
```

#WordPress #Blogging