• Resolved oceansdg

    (@oceansdg)


    Hi, I’m in the process of changing theme and working on duplicate site. I would like to change pages to posts for more functionality and tried this plugin as it’s exactly what is needed. It changed the page to custom post however it made the permalink the custom post type instead of preserving the page permalink (the new theme comes with 3 custom post types). The wordpress permalinks are set to custom structure http://site.com/%category%/%postname%/
    Could this setting be the problem or can you advise what I could check that might be making this happen. The page permalinks have 3 levels to the structure in some pages but mainly 2 levels from the website name. Thanks

    https://wordpress.org/plugins/post-type-switcher/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter oceansdg

    (@oceansdg)

    I’ve since done some more testing with the CUSTOM POST TYPE…when I change the page to custom post it uses sitename/custompostype/name-of-page and therefore changes it from sitename/parent-page-name/child-page-name/name-of-page hence not keeping the same url.

    When I change page to a GENERAL POST, it changes it to sitename/uncategorized/name-of-page. I therefore added the parent and child category names and selected them. After doing that I got the correct url that was same as page url.

    I also added the categories to the custom post type but the url stayed same as with the custom post type name first.
    Would you think that the custom post type info needs changing for this to work or is the general post types process above how this plugin must be used to retain existing page url?

    Plugin Author John James Jacoby

    (@johnjamesjacoby)

    Hi @oceansdg,

    Changing a post’s type will always change it’s URL to whatever the rule is for that new type. There is no way (in this plugin) to retain the old URL, and it’ a bit outside the scope of what this plugin will probably offer.

    The way to do this would be to save the old type/URL in metadata, and redirect to that old URL if it exists.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Preserve url permalink issue’ is closed to new replies.