NattyWP - Community Forum
Your member area
NattyWP Help Desk
Home
Search
Login
Register
Welcome,
Guest
. Please
login
or
register
.
NattyWP Community
«
Configuration and Development
«
Easy Touch theme
« limiting pages in top header menu
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: limiting pages in top header menu (Read 1864 times)
raweiss
Newbie
Karma: 0
Posts: 12
limiting pages in top header menu
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
Re: limiting pages in top header menu
You can check
functions/custom-func.php
you can operate with exclude for function t_show_pagemenu()
Logged
Dmitry A
http://www.nattywp.com
raweiss
Newbie
Karma: 0
Posts: 12
Re: limiting pages in top header menu
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
Re: limiting pages in top header menu
Yes, we are preparing new theme framework now and we'll add exclude functionality to the theme Options.
Logged
Dmitry A
http://www.nattywp.com
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Announcements
-----------------------------
General
-----------------------------
=> General Discussion
=> Member Sites
=> The Lounge
-----------------------------
Configuration and Development
-----------------------------
=> Home Office
=> Blogus
=> Bongo Theme
=> Photonic theme
=> Newsone theme
=> Folium theme
=> Valtik
=> Groovy theme
=> Suit theme
=> Deluxe theme
=> Business theme
=> Nostra theme
=> Mayones theme
=> Easy Touch theme
=> Kongo Theme
=> Newsday Theme
=> Flashlog Theme
=> Simplix Theme
=> Tribune Theme
=> News Hunter Theme
=> Image Hunter Theme
Loading...