WordPress.org

Forums

changing page URL (not just slug) to omit '/parent' (3 posts)

  1. kschmidgall
    Member
    Posted 6 years ago #

    Hi,

    I've read through the permalinks section of codex (a few times, slowly) and several threads on the forum, but I'm still struggling to find answer to my question:

    In the codex it says that URLs for pages are created according to the hierarchy of the pages (for example: http://mysite.com/parent/child/grandchild).

    I need to omit the '/parent' from the URL.

    When I click 'Edit' for the permalink it only allows me to change the page slug, not the earlier part (/parent) of the URL...

    Can anyone point me in the right direction??

    REALLY appreciate your help!!

  2. MattSimpson
    Member
    Posted 6 years ago #

    I'm having the same problem too. I've tried some plugins (e.g. Advanced Permalinks). But I can't figure out how to get rid of the parent page slug in the URL.

  3. studiocodes
    Member
    Posted 6 years ago #

    I stumbled upon a similar requirement where page parent slugs were not needed in the page URL, so I searched around and found more threads like this with people asking the same thing, but no solution was given.

    I finally worked it out but not yet sure how to put it up into a plug-in rather than apply the hack to the core WordPress files so that future WordPress upgrades aren't affected.

    As soon as I have this solved, I'll upload it to the WordPress Plug-ins directory.

Topic Closed

This topic has been closed to new replies.

About this Topic