Viewing 3 replies - 1 through 3 (of 3 total)
  • If you want to exclude all subpages, wp_list_pages has a parametre depth (if you set it to 1, it’ll only show the top level pages). If you want to exclude some and include some, you need to use the exclude parametre and list all the page IDs you want excluded.

    Thread Starter jet3004

    (@jet3004)

    Yes, I want to exclude all subpages. I see this depth stuff. Now can you walk me though it a little about what goes where? I’ve been copying and pasting all morning to no avail. Thank you!

    An example of the very basic form of the template tag:
    <?php wp_list_pages('title_li='); ?> – you should add:
    <?php wp_list_pages('depth=1&title_li='); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude Subpages from being added to bar in MX4’ is closed to new replies.