WordPress.org

Ready to get started?Download WordPress

Forums

Excluding pages from list (2 posts)

  1. kerry.peterson
    Member
    Posted 4 years ago #

    I am trying to exclude pages from the list and have found the correct code to remove them;

      <?php wp_list_pages('exclude=17,38' ); ?>

    However I am having trouble with what .php file to put the code into.
    Any help would be greatly appreciated.
    Thank you!

  2. henkholland
    Member
    Posted 4 years ago #

    Hi,

    Depends on where your menu is now. Could be header.php, sidebar.php, left-sidebar.php etc.
    It will have the standard wp_list_pages now.
    Backup any file before you edit it.
    You can even copy it from the wp-dashboard/apperance/edit screen to Notepad and save it on your pc.

Topic Closed

This topic has been closed to new replies.

About this Topic