WordPress.org

Support

Support » How-To and Troubleshooting » Controlling what pages that are visible in menu/index

Controlling what pages that are visible in menu/index

  • I would like to start adding some pages to my site … but I don’t want them to show up in the “pages index/list/menu” widget. Is there some way in which I can control which pages that are shown? (I want to have some pages there but not all of them)

Viewing 4 replies - 1 through 4 (of 4 total)
  • If you use code rather than the widget to display the categories, you can exclude pages.

    This lists all of the pages

    <?php wp_list_pages();?>

    With code like this

    <?php wp_list_pages('exclude=17,38' ); ?> you can exclude pages from appearing.

    To get the ID number of the pages

    Go to Manage > Pages and select the name of the page in which you would like to exclude. In the status bar of your web browser will be a URL that looks like the following.

    wp-admin/page.php?action=edit&post=96

    The number at the end, 96, is the ID number for the page and is the number you will use in the exclude code. You can do this for each page that you want to exclude as long as you put a comma between the page numbers in the code.

    Alternatively, you can use the following plugin

    http://wordpress.org/extend/plugins/exclude-pages/

    There is an excellent plugin called pageMash, where you can hide pages from output.

    Oh – that’s a good one – thanks!

    Thanks, that worked perfectly

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Controlling what pages that are visible in menu/index’ is closed to new replies.