Support » Fixing WordPress » Loop through parent pages

  • Resolved danlawson


    Hi all,

    I am looking for a way of looping through each of the parent pages in my wordpress site?

    I have this static code which i would like to convert to dynamic using this loop:

    <ul class="menu_list">
                        <li><a href="/">Home</a><span>|</span></li>
                        <li><a href="About">About PRM</a><span>|</span></li>
                        <li><a href="Safety-Services">Services</a><span>|</span></li>
                        <li><a href="Contact-Us">Contact Us</a><span>|</span></li>
                        <li><a href="/wp-admin/">Log In</a></li>

    Thanks very much for help with this.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Loop through parent pages’ is closed to new replies.