Change name of custom post type but dont want to disappear all posts

Support MB Custom Post Type Change name of custom post type but dont want to disappear all postsResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #32796
    paul@webdegelijk.nl[email protected]
    Participant

    Hi,
    I would like to change the name of a post type, but when I do that all posts disappear, so I changed it back, posts were back too.
    Please advise on how to change the name of a post type the save way.
    Regards,
    Paul

    #32802
    Long NguyenLong Nguyen
    Moderator

    Hi Paul,

    You can change the Plural name, Singular name to another but you have to keep the current CPT slug to make the current posts available. Refer to this article https://metabox.io/move-custom-post-type-custom-field-data-from-pods-to-meta-box/

    #32821
    paul@webdegelijk.nl[email protected]
    Participant

    Thanks Long! As a workaround I renamed my blog page slug to 'weblog' so I was able to keep the post type slug to 'blog'. It's not ideal at all but next time I won't make the mistake of using a custom post type slug name that I need for urls slugs too.
    Should you know of a better workaround please let me know.
    Regards,
    Paul

    #32831
    Long NguyenLong Nguyen
    Moderator

    Hi Paul,

    Another way, you can use the plugin Post Type Switcher to switch the post type https://wordpress.org/plugins/post-type-switcher/

    #32932
    paul@webdegelijk.nl[email protected]
    Participant

    Thanks for your advise! Appreciate it. Will look into it later. Regards, Paul

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.