WordPress.org

Support

Support » How-To and Troubleshooting » Excluding pages from list

Excluding pages from list

  • 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!

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Excluding pages from list’ is closed to new replies.
Skip to toolbar