WordPress.org

Support

Support » How-To and Troubleshooting » changing page URL (not just slug) to omit ‘/parent’

changing page URL (not just slug) to omit ‘/parent’

  • kschmidgall

    @kschmidgall

    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!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘changing page URL (not just slug) to omit ‘/parent’’ is closed to new replies.
Skip to toolbar