Orphaned post metadata looks wrong?
-
Hi, I regularly use wp-optimize on my websites and am currently trying to tidy things up on a customer site. The plugin says it has over 6000 orphaned post metadata records, but I’ve run the following query in the database and it returns 0 records, so I can’t figure out how WP-Optimize is calculating the numbers.
SELECT pm.* FROM wp_postmeta pm LEFT JOIN wp_posts wp ON wp.ID = pm.post_id WHERE wp.ID IS NULL
Can you tell me the query the plugin uses to determine the orphaned metadata records, as it doesn’t seem right to me. If there are genuinely 6000 orphaned records I’d obviously like to clean them up.Thanks,
Ed Solman
The topic ‘Orphaned post metadata looks wrong?’ is closed to new replies.