• TBRudy3

    (@tbrudy3)


    I’ve searched around for an answer but cannot seem to find one. All I keep seeing is how to REMOVE the parent page from the URL.

    I am having the opposite problem. I would like to add the URL of the parent page to whatever child page I create.

    For example.

    I have
    https://www.site.com/parent/child/

    But, I am only getting https://www.site.com/child/

    I created my own theme, and not sure what I need to do to get this working. Front page is static, and posts are on a /news/ page. Permalinks are set to /news/%postname%/

    All help is appreciated.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • jimisdon

    (@jimisdon)

    You may not like this answer, depending on how many pages you’ve got, but I found an article discussing a way for you to impose that structure on a per-page basis. WordPress won’t do it dynamically for you, but it can be done.

    https://winkpress.com/essential/permalinks/

    The plugin mentioned in that article can be found here:

    https://www.ads-software.com/extend/plugins/custom-permalinks/

    Sorry that there doesn’t seem to be a way to make it happen automatically. If you are savvy, you might be able to write a little something that talks to that plugin, but I really don’t know if that is possible.

    jimisdon

    (@jimisdon)

    Upon closer reading of your question (and not in the wee small hours of the morning(, I realized I haven’t actually answered your question. The link I sent your way was dealing with Posts, not Pages. My mistake.

    I have a feeling that the /news/ thing is preventing WP from creating the URL hierarchy for your Pages. Just a guess. Try removing it and see what WP comes up with then. My apologies for getting it wrong earlier.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parent Page URL Not showing’ is closed to new replies.