• I’m trying to setup a secondary navigation through sections of a wordpress site. I’m currently using wp_list_pages() and it’s mostly working the way I want:

    <ul class="lft">
      <?php
      wp_list_pages('depth=1&sort_column=menu_order&title_li=&child_of='. $categoryid ); ?>
      </ul>

    The problem is, I only want the depth to show the current page. So using the above, if the current page has deeper child pages those don’t display. How can I make the menu only display child pages of the current page, but sibling pages of the current category?

Viewing 1 replies (of 1 total)
  • In WP, “Page” content type doesn’t have Category taxonomy like “Post”. What’d work for Page is only Parent and child (subpage) relation.

    Check out “Display Posts Shortcode” plugin, also many others.

Viewing 1 replies (of 1 total)
  • The topic ‘Help with listing pages in sidebar’ is closed to new replies.