• Resolved J

    (@paradox_designs)


    Hi

    In a custom post type, when I create a post and preview it before publishing, the preview works fine. But once published, if I make changes and click the preview changes, it shows on that page:

    No Results Found
    The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.

    Any ideas?

    Thanks

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter J

    (@paradox_designs)

    So i’ve tested everything, I turned off all plugins and issue persists. I changed to default theme and issue persists. I am at a loss.

    I would create a new custom post type but I have almost a 100 posts on this custom post type. and i would need it to have the same name/slug etc’ anyway. What else can i do here?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    We do have functionality to help transition posts in a post type, if one desires to rename the post type slug. The post slugs would remain and not be an issue, but the rewrite URLs would potentially be. I think you could likely get away with using the rewrite_slug field to set it back to what you’re looking for.

    Rename the post type to say “my_resource” and then set the rewrite_slug to “resource”.

    Overall, I don’t feel this is necessarily a bug with CPTUI itself, but something with WordPress core that I just don’t have an answer for at the moment.

    Thread Starter J

    (@paradox_designs)

    Ok, I am not clear on some of the specifics and the steps. You are saying to change the “Post Type Slug” (the first field) in the Edit Post Type tab to my-resources, yes?

    Then I hit save? and after go add “resource” in the “Custom Rewrite Slug” field and save again? or do I do both at the same save?

    Also do i check the “Migrate posts to newly renamed post type?” box?

    Anything else i missed?

    Thanks

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’m suggesting changing the first field, the post type slug to something not “resources”, and used “my_resources” as a quick example. Make sure to check the checkbox that talks about migrating the post types, so that CPTUI will run a query for all the posts that have the old “resources” post type, and update the column to “my_resources” in my example. Then scroll down to the custom rewrite slug field and enter in “resources”. After that, you can click save.

    Won’t hurt to take a quick backup first, just in case.

    You essentially have it, with the exception of hitting save a bit more than needed.

    Thread Starter J

    (@paradox_designs)

    Welp, that didn’t solve it. This is such a bummer.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Was worth a shot.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Preview doesn’t work on published posts, shows no results found 404’ is closed to new replies.