WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
[resolved] Changing Permalinks (3 posts)

  1. jakilevy
    Member
    Posted 1 year ago #

    Hello - I setup 1 new post type and entered in a bunch of data - now I'm noticing there's a typo on my post type.

    example : site.com/post-tpye

    When I changed the slug to NOT have the type (example site.com/post-type) , all my posts disappeared. Gone.

    So - how can I change the slug/url for my post type and still keep all the data I entered in while still using this plugin?

    http://wordpress.org/extend/plugins/custom-post-type-ui/

  2. Octopixell
    Member
    Posted 1 year ago #

    jakilevy, if you haven't done so already, change the slug of your post type back to the original faultive one. That way you get back your posts and that way you can export them as a temporary backup.

    I'm not sure at the moment how the posts are bound to the slug of the post type. When you export your posts there are two fields that (i think) bind the post to the post type.

    Within the <item> tag you can see <link> and <guid> . Maybe if you change those values and import the posts you can get them on the new slug of the post type?

    I'm not sure if this works but you could try. Try it on a dev environment before you try this on your live website ofcourse ;)

  3. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    When changing something like the slug after entering some content, you're not losing the content in the database, you're creating a new custom post type. You'll need to find a way to change the post type content in the db to the new one. I believe there are some plugins out there that aid in switching, or you could do it manually after backing up your db first.

    Hopefully this puts you on the right path.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic