Forums

[resolved] problems with wp_list_pages (2 posts)

  1. bradleydurham
    Member
    Posted 2 years ago #

    I am trying to show just 5 links in my navigation bar.

    I put the following code in my header.php file...

    <?php wp_list_pages('include=1,2,3,4,5&title_li='); ?>

    i was getting the 5 links i wanted. i made a slight change to a different part of the header file, and now it will only show four links. any thoughts on what i can try next?

    here is the site... demo

  2. bradleydurham
    Member
    Posted 2 years ago #

    nevermind. i achieved what i wanted by using depth instead of include. i think it works now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags