WordPress.org

Forums

Parent Page URL Not showing (3 posts)

  1. TBRudy3
    Member
    Posted 2 years ago #

    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
    http://www.site.com/parent/child/

    But, I am only getting http://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

  2. jimisdon
    Member
    Posted 2 years ago #

    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.

    http://winkpress.com/essential/permalinks/

    The plugin mentioned in that article can be found here:

    http://wordpress.org/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.

  3. jimisdon
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic