Created
May 25, 2020 14:53
-
-
Save anton-roos/bde518dc7a8307ab4863ac132a421fd9 to your computer and use it in GitHub Desktop.
Select WordPress Posts or WooCommerce Products with no featured image.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT ID | |
FROM `wp_posts` | |
WHERE ID | |
NOT IN (select `post_id` from `wp_postmeta` WHERE `meta_key`="_thumbnail_id") | |
AND `post_type`="product" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment