• Resolved xmatter

    (@xmatter)


    Currently here is the code i’m using:

    <?php wp_list_pages(‘sort_column=menu_order&depth=2&title_li=&exclude=67,159,162,165,195,347,490’);?>

    this excludes those pages, but as i add more pages, don’t want to keep adding to the list.

    Is there a way to include only the pages that i want to display for my main menu? with a depth 1 or 2? without having to make a hierarchical structure within the header.php?

    i assume i can use “include” and add all the page numbers?

    Thanks in advance!!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘include and exclude certain main pages’ is closed to new replies.