Controlling what pages that are visible in menu/index (5 posts)

  1. skromta
    Posted 6 years ago #

    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)

  2. kwbridge
    Posted 6 years ago #

    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.


    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


  3. buddha trance
    Posted 6 years ago #

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

  4. kwbridge
    Posted 6 years ago #

    Oh - that's a good one - thanks!

  5. skromta
    Posted 6 years ago #

    Thanks, that worked perfectly

Topic Closed

This topic has been closed to new replies.

About this Topic