Tuesday, May 4, 2010

How to delete a post from a Wordpress database

For some reason the data that I inserted into a post got corrupted and I was unable to delete or edit it within the Wordpress console. So to manually delete a post from the database just do this update:

update (name of posts table) set post_status = 'trash' where id = (ID of offending post)

No comments:

Post a Comment