NattyWP - Community Forum
Welcome, Guest. Please login or register.
NattyWP Community « Configuration and Development « Easy Touch theme « limiting pages in top header menu
Pages: [1]   Go Down
  Print  
Author Topic: limiting pages in top header menu  (Read 1864 times)
raweiss
Newbie
*
Karma: 0
Posts: 12
View Profile

I am trying to find out how to limit which pages display in the header menu. I am looking for the list_pages command in the header.php code, and you seem to be doing something different. But when I search around the site I don't see any guidance on this.

Rick
Logged
Dmitry A
NattyWP Team

Sr. Member
*****
Karma: 101
Posts: 243
View Profile

You can check
functions/custom-func.php

you can operate with exclude for function t_show_pagemenu()
Logged

raweiss
Newbie
*
Karma: 0
Posts: 12
View Profile

Thanks - I had to do a little guessing on this - since I am only an amateur php coder.

But for any others who may want to do the same, here is the line that does the job:

$pages = wp_list_pages('sort_column=menu_order&title_li=&echo=0&depth=1&exclude=116, 141, 152'.$exclude);

Just put in the page ID # after the exclude=

It is a pain if there are going to be multiple pages, because you have to go in and put the newly added page each time.

Rick
Logged
Dmitry A
NattyWP Team

Sr. Member
*****
Karma: 101
Posts: 243
View Profile

Yes, we are preparing new theme framework now and we'll add exclude functionality to the theme Options.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: