Viewing 3 replies - 1 through 3 (of 3 total)
  • No, but you would have to be very careful about other items that link to it, like post meta values, and any other data records that use ID’s as a key.

    Thread Starter stan255

    (@stan255)

    So let’s say…
    https://www.site.com/flags/ – post id 1234 with 10 posts linking to it in a parent-child hierarchy
    https://www.site.com/flags-2/ – post id 4567 with no posts linking to it.

    If I delete /flags/ and change slugs of /flags-2/ to /flags/, will all 10 posts which were previously linked to post id 1234 move over to post id 4567?

    It depends on where those links are set and how they are produced.

    If they are in your sites content, like in page or post content in the visual editor, then the links will stay the same, because those are basicalyl hard-coded into that page.

    If they are constructed using any of the various WordPress functions (eg: get_permalink()) then no, you will need to update these anywhere that they are used as those work on post/page ID’s, not the actual URL.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Will changing post ID mess up post hierarchy?’ is closed to new replies.