Forums

do not show subpages (2 posts)

  1. mduszyk
    Member
    Posted 2 years ago #

    Hi,

    my blog (wmduszyk.com) uses the Carrington theme. In the top bar page pulldown (AIX Lessons) I do not want to display the sub-pages - there is too many already and the number is growing.
    I am an AIX admin - I know how to spell PHP and no more.
    Is this possible to do and if so could someone tell me how to do it?

    With the best regards,

    MarkD:-)

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

    Have a look at sidebar.php. Specifically, you're looking for wp_list_pages. Once you've found that template tag, you can use the depth parameter to limit it to the top level only. eg:

    <?php wp_list_pages('title_li&depth=1');?>

Topic Closed

This topic has been closed to new replies.

About this Topic