Forums

[closed] How do I write the wp_list_pages code to link pages? (6 posts)

  1. nails64
    Member
    Posted 3 years ago #

    I have <? wp_list_pages ('title_li=&depth=1');?> on my sidebar code and it links my sidebar navlinks to their child pages. But how do I link these child pages to their respective child pages?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    <?php wp_list_pages ('title_li=&amp;depth=2');?> will increase the list's depth by 1 level. Or use <?php wp_list_pages ('title_li=');?> to show all pages.

  3. nails64
    Member
    Posted 3 years ago #

    Thanks for answering. Whenever I increase the number, it brings all of the subpages onto the main page, and my home page sidebar ends up with all of the possible pages listed on it. What could I be doing wrong there? What I'm trying to do is on the secondary page, make the lists on the secondary page links as well, to their subpages.

    Thanks, Chuck

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Ah - in that case, have a look at the Fold Pages plugin/widget.

  5. nails64
    Member
    Posted 3 years ago #

    thanks, I'll give it a try.

  6. MichaelH
    Volunteer
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.