Hiding child pages from the sidebar navigation (6 posts)

  1. cfaria
    Posted 7 years ago #

    Hi there,

    Does anyone know how I can hide the child pages from the navigation on the left hand side: http://www.ben4ben.org.uk/

    Many thanks,


  2. reborrell
    Posted 6 years ago #

    I don't have an answer to your question, but I could use your help.

    I viewed your webpage and love it. I'm trying to do exactly what you've done at the top with expanding the usual number of photos from 7 to 11.

    My code appears to be set up the same way yours is; however it's not working.

    Can you go to http://www.BestFriendsPhotoBlog.com and check it out. I believe everything is listed in the header.php properly (I even changed the open width to 280).

    Perhaps my problem is with my style.css or my image.Menu

    I really would appreciate any help you or anyone else could offer.

    Reb Orrell

  3. cfaria
    Posted 6 years ago #

    Hi Reb,

    Sorry I've only just seen your post now - but you seem to have resolved the issue already. Well done!


  4. esmi
    Forum Moderator
    Posted 6 years ago #

    Use the depth parameter with wp_list_pages():

    <?php wp_list_pages'title=&depth=1');?>

  5. Schwartz-Reports
    Posted 6 years ago #

    Try this plugin. Works great.

    Exclude Pages from Navigation

  6. Mark / t31os

    Posted 6 years ago #

    No need for a plugin if you utilise the function parameters, using depth should resolve the problem, as Esmi has shown above.

Topic Closed

This topic has been closed to new replies.

About this Topic