• Resolved dhamphir

    (@dhamphir)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • wpismypuppet

    (@wordpressismypuppet)

    I think this is what you are looking for:

    https://codex.www.ads-software.com/Appearance_Menus_Screen

    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!

    Thread Starter dhamphir

    (@dhamphir)

    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.

    Thread Starter dhamphir

    (@dhamphir)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need show only certain pages on menu’ is closed to new replies.