• I was following a security suggestion of removing the default Admin user after setting up most of a site’s content. I then noticed all my pages and content were gone!! I added the pages back manually as I hadn’t setup a backup yet. Now, the pages are showing up with the expected, but with a “-2” at the end.

    I’m a noob at WP … so any help is appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter CFTech

    (@cftech)

    Update: I eventually figured out how to address this issue. Since no one jumped in here, in case someone comes across this thread looking for a resolution … here is what I did:

    Pages — Page content is stored in the db table wp-posts. Your pages may not show up in WordPress now, but they are still in the db. Simply use phpmyadmin to lookup each page (post_type = ‘page’) and change the post_status = ‘trash’ to post_status = ‘publish’. Your pages will then show up as expected in WordPress

    Media/Gallery — unfortunately, the media is not stored in a db table. Instead it is located (via ftp) in your wp-content\uploads folder and appears to have been removed/deleted. So, you will have to upload your media files again. As long as you use the same file names as before, the URL/Link you used before will be ‘nearly’ the same and is still located in each of your pages. So, just upload them once again. Then, take notice to the upload folder name used by WP. Previously, it may have been something like wp-content\uploads\20119\filename.jpg. Now, it may be wp-content\uploads\2011\10\filename.jpg. The difference being the 09 and 10 which refers to the month the file was uploaded.

    Hope this helps.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Deleted Admin User – pages gone’ is closed to new replies.