• ojfoggin

    (@ojfoggin)


    Hi,

    I have installed a theme on my site and have managed some basic tweaks and changes. I’d like to get rid of some of the links in my navigation panel.

    I’d like to get rid of the “Eva’s Birthday”, “New PC Pics”, etc… from my site.

    Can anyone advise me.

    Thanks a lot 🙂

    Oliver

    Oops, my site is http://www.myjavaworld.co.uk

    Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Alex Cragg

    (@epicalex)

    in your header, or wherever the nav section is located, where you call the pages, put ‘exclude=x,y’ in the brackets. where x and y are the id numbers of the pages.

    so assuming you are using wp_list_pages, and the items you dont want to display are id 1 2 and 3 put the following
    <?php wp_list_pages('exclude=1,2,3'); ?>

    you can find the ids on the manage pages panel.

    rudolf45

    (@rudolf45)

    If they are “children Pages” (as stated in the title of the topic) you don’t really need to exclude them one by one. You could use the “depth” parameter, e.g.
    <?php wp_list_pages('depth=1'); ?>
    would display only the level 1 = topmost parent Pages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting rid of child page links in the nav panel.’ is closed to new replies.