The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Need show only certain pages on menu (4 posts)

  1. dhamphir
    Posted 4 years ago #

    I've set up my site. It's NOT a blog. I only have pages - which is the way I want it. However, I need to eliminate all but a handful of the pages in the menu. I don't need 200+ tabs across the top of my page. I only want certain pages in those navigation tabs.

    I've read the codex and found this coding:

    <?php wp_list_pages('exclude=7,13,26,35' ); ?>

    If I'm understanding correctly, that will show just pages I want. However, I have no idea where to put this code. Please help.

    -- I did try using the "private" setting, but that hides the page itself from my readers.

  2. wpismypuppet
    Posted 4 years ago #

    I think this is what you are looking for:


    Please note that down at the bottom in the "Adding Menu Support to Themes" section, there are links on adding the correct code to make menus appear in the admin section, if they aren't already there.

    Once you have a menu set up, and you place the code correctly, you should be able to add/remove navigation items with ease!

  3. dhamphir
    Posted 4 years ago #

    I read that. This is for adding a menu module in lieu of the theme's menu. I want to make changes to the menu I already have within the theme.

  4. dhamphir
    Posted 4 years ago #

    Oops! I messed around with that page anyway, and I didn't realize that it would change the theme's menu. I thought it added a widget on the side of the page.

    So in other words, it's exactly what I needed! Thank you SO much! :D

Topic Closed

This topic has been closed to new replies.

About this Topic