W
W
webpixel2015-10-21 15:35:47
PHP
webpixel, 2015-10-21 15:35:47

How to safely remove posts from wp_posts with 0 id?

Hello connoisseurs! Something went wrong on the site, and 9 posts appeared that cannot be deleted through the admin panel, they all have 0 id in the database, they are empty by themselves and contain only the date and the 'Auto Draft' status. I ran the standard repair.php from WordPress and installed the WP-Optimize plugin, both show that everything is in order with the database, but it does not delete these posts. The site works, but slows down in the admin panel, WP_DEBUG shows that there are requests but cannot process them, I would like to fix this annoying moment.
Question: How to safely delete these posts, preferably by checking their links with other tables, so as not to break anything? Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Beloborodov, 2015-10-22
@kowap

delete from `table` where id=0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question