excluding page links from header (4 posts)

  1. Arkonbey
    Posted 5 years ago #

    Hey, all;

    I'm trying to exclude some child links from appearing in the header (children break the header something fierce and I want to direct-link anyway). The codex is not clear on how to exclude specific pages. When I insert the code it suggests (<?php wp_list_pages('exclude=3,4' ); ?>), it simply duplicates the entire link area of the header without excluding.

    This really bugs me as I'm very proficient in html/css, but php is new to me and WordPress isn't making it any easier for me.

    Thanks for your time.

  2. Alx Block
    Posted 5 years ago #

    You can always use a plugin to do that kind of thing. I use http://wordpress.org/extend/plugins/exclude-pages/, which woks just great.

  3. gixxer188
    Posted 5 years ago #

    If they are 'chilc' links/pages maybe you need to add 'depth=x'?
    <?php wp_list_pages('depth=4&exclude=3,4'); ?>

  4. Arkonbey
    Posted 5 years ago #

    @Alx: Perfect!

    Thanks so much.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.