How do I display subpages in my sidebar for page navigation? (6 posts)

  1. impactfitness2k
    Posted 8 years ago #

    I modified my sidebar with the following code for page navigation:

    <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

    I am trying to use the appropriate arguments from the following:


    to display all subpages and every effort I make at doing so ends up making this part of the sidebar not show up at all. I'm not versed with PHP code really so any help is greatly appreciated. I just want to add on whatever code I need to properly after what I already have in order for it to show all subpages 3-4 levels deep. Again thank you for your time.

  2. moshu
    Posted 8 years ago #

    By default, WP shows every children/subPages, all levels.
    However, if you are using widgets for your sidebar - the editing of the code is irrelevant: the template tag is coming from the widgets, not from your sidebar's code.

  3. impactfitness2k
    Posted 8 years ago #

    I'm not using any widgets for this, the template I'm using didn't originally have sidebar page navigation and doesn't display subpages by default. I'd appreciate any help thank you.

  4. impactfitness2k
    Posted 8 years ago #

    My site in question if this is a theme related problem at all is: http://www.golfproductreviewblog.com/

    Thanks again for all your help anyone.

  5. jazbek
    Posted 8 years ago #

    hi impactfitness2k,

    this page helped me do something similar:

    also notice in the comments below the post on that page, there is also a link to a widget that may do what you need. i haven't tried the widget yet, however.


  6. jazbek
    Posted 8 years ago #

    actually, after doing a bit more googling, i found this plugin that has been the most useful:



Topic Closed

This topic has been closed to new replies.

About this Topic