Support » Fixing WordPress » My posts have disappeared after switching themes.

  • I switched themes yesterday and now when I click on “All Posts” in admin, they are not there! I can create new posts and they show up, but all my previous 500 posts or so are missing. I know they are still in the database because they show up on my site: I think it may have to do with the plug in Qoolarchives. When I deactivate this plugin, the posts disappear on the front end of my site. and what’s weird is that my categories still have the posts there when I click on them individually in admin, but when I click on all posts, nothing shows up. My search function could not find anything so I switched to google custom search and it finds my posts.

    I’ve tried repairing my database, resetting permalinks, and read everything I could find on this issue. Does anyone have any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I forgot to mention that when I click to edit the posts that do show up in the individual categories in admin, it states: You attempted to edit an item that doesn’t exist. Perhaps it was deleted?

    When I click on quick edit, it tells me: You are not allowed to edit this post.

    Same issue! If you find a solution please let us know.

    Here is the reason for your issue:

    1. That plugin uses a custom post type. Each post type have to be registered in order to showup on your backend. So, when you deactivate that plugin the post type isn’t registered so it won’t show.
    2. Its still shows on category or whatever section because those data still on your database.
    3. Why its still showing on your theme? if your theme querying it with its post type name it can show them because they are still on the database.
    4. Whats the solution? Keep using the old plugin/theme. Or you have to copy part of the code that registers the post type into your new theme (require good coding knowledge)

    Hope it helps.

    The only thing I could think of is renaming the theme if it’s a custom theme and also try changing the default theme in wp-config.php by adding this code:

    define( ‘WP_DEFAULT_THEME’, ‘twentynine’ );

    Please let me know if that works.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘My posts have disappeared after switching themes.’ is closed to new replies.