WordPress- Delete Pages directly

by 5 replies
7
Hey warriors,
I have a problem with my WordPress blog- there was a plugin which created hundreds of pages and I'm not able to delete them in the admin panel because everytime I try to get to the "delete page" there is an error. Can anyone tell me how to delete the sites without using the WP admin panel?

Thank you very much!
#programming #delete #directly #pages #wordpress
  • Is it the UAW program? Try deleting the plugin, the creator, and then the post. I'm new to the wordpress, but that's what worked for me on my bro's ( he didn't like the random articles )
  • No, it was a membership plugin. And no posts, pages.
    Cheers!
  • Have you tried deleting them from the database?
  • Hey digital29,
    how can I do this exactly with the database? Don't want to loose content...
  • Hi William

    Before you even think of attempting this backup your MySQL database! If you don't know how to do that, or how to work directly with the database (with PHPMyAdmin or the MySQL GUI Tools) or how to use SQL commands then don't attempt this!

    In WordPress Pages, Posts and Attachments are all kept in the same table - wp_posts. There is a VARCHAR field in this table called "post_type". Any entry with a "post_type" of "page" is a WordPress Page.

    If you were to delete all of the entries with "post_type = 'page'" you would remove ALL your pages. This probably isn't what you want! You should look for a common identifier for all your generated pages and use them in your query.

    Before doing any DELETE query always run a SELECT query with the same parameters in the WHERE clause - just to make sure you're really deleting what you want to delete!

    Again, make sure you have a backup before you do any of this!

    Best of luck

    Bill

Next Topics on Trending Feed

  • 7

    Hey warriors, I have a problem with my WordPress blog- there was a plugin which created hundreds of pages and I'm not able to delete them in the admin panel because everytime I try to get to the "delete page" there is an error. Can anyone tell me how to delete the sites without using the WP admin panel?