WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] can't rename slug of parent page (3 posts)

  1. DrLightman
    Member
    Posted 4 years ago #

    I've create a page "Foo" with slug "foo"

    Than I've created "Bar" as a subpage of "Foo" with slug "bar" so that the permalink to "Bar" is:

    /foo/bar/

    Even if I rename the slug of "Foo" into "lol", it seems I cannot propagate the modification to the permalink that leads to "Bar", it remains /foo/bar/ and not /lol/bar/ and I cannot rename it from the admin, it only permits to rename the "bar" part, from the "Bar" page propertis. I had to dig into the database and did it by hand.

    Is it true?

  2. syncbox
    Member
    Posted 4 years ago #

    It shouldn't be a problem.

    1) go to the parent page and click the Edit button for the slug (permalink). If not visible, you may need to adjust the view options of the page to display the slug.

    2) change the slug (eg. /foo/ to /lol/)

    3) click the Save button by the Edit button

    4) CLICK THE UPDATE PAGE BUTTON. If you don't do this, you will lose your edit.

    Results: if you go to the child page, it should have its slug altered to reflect the changes made to the parent page.

    All dynamically generated links should also be modified.

    NOTE: I did this in an earlier version but I believe it works also in 2.9. I've not noticed any issues myself, but have forgotten to click the UPDATE PAGE button before leaving the modified slug page and have lost changes because of it.

    HTH

  3. DrLightman
    Member
    Posted 4 years ago #

    The missing click on the UPDATE button was the problem, thanks a lot :)

Topic Closed

This topic has been closed to new replies.

About this Topic