WordPress.org

Ready to get started?Download WordPress

Forums

Display specific page dynamically (3 posts)

  1. donderhaas
    Member
    Posted 6 years ago #

    Hi there,

    My site is setup to use one main level of navigation and I am using permalinks.

    Now I want to add 3 links that I will only be accessible from the footer (Terms & Conditions, Privacy Policy, Licence Agreement). These pages have been added with my about page being the parent.

    Is there a piece of code I could use to display only these pages via their id's while using permalinks?

    The reason I want to do it this way is because I am using permalinks - I want the link to display like the permalink as well (www.domain.com/terms-and-conditions/), but I also want them to be dynamic for when I decide to change the permalink name through wordpress to say (www.domain.com/temrs/) that it will automatically change these 3 links accordingly.

    Thanks in advance.

  2. moshu
    Member
    Posted 6 years ago #

    1. If "terms-and-conditions" is a child of "about", then the permalink ALWAYS will be:
    example.com/about/terms-and-conditions - if using the "nice" permalinks

    2. Template_Tags/wp_list_pages#Parameters would be a good reading for starters...

    [moved to How-To... nothing "advanced" here]

  3. donderhaas
    Member
    Posted 6 years ago #

    Thanks - I'll check it out

Topic Closed

This topic has been closed to new replies.

About this Topic