WordPress.org

Ready to get started?Download WordPress

Forums

My posts have disappeared after switching themes. (5 posts)

  1. cj2
    Member
    Posted 1 year ago #

    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: http://wardrecipes.com. 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?

  2. cj2
    Member
    Posted 1 year ago #

    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.

  3. kaformedia
    Member
    Posted 1 year ago #

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

  4. prionkor
    Member
    Posted 1 year ago #

    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.

  5. kaformedia
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic