Forums

[closed] Linking pages (5 posts)

  1. nails64
    Member
    Posted 2 years ago #

    I have navlinks on my sidebar which goes to the subpage of each. But I need to link those subpages to subpages under them and I can't figure out how to do it. Is depth the correct way?

  2. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    Look for <?php wp_list_pages(); ?> in your sidebar and remove any reference to depth=1.

    http://codex.wordpress.org/Template_Tags/wp_list_pages

  3. nails64
    Member
    Posted 2 years ago #

    Thanks, there is a depth 1. So I don't put a bigger number, I just take out the 1?

  4. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    So I don't put a bigger number, I just take out the 1?

    No - remove &amp;depth=1 completely. WP will then default to listing all pages irrespective of how deeply they are nested.

  5. MichaelH
    Volunteer
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags