Created
April 12, 2016 23:34
-
-
Save carlosleopoldo/ce2881113af5947e07deca0579ad2c06 to your computer and use it in GitHub Desktop.
Delete all orphans post meta in WordPress Raw
This file contains hidden or 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
DELETE FROM wp_postmeta | |
WHERE post_id NOT IN ( | |
SELECT ID FROM wp_posts | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment