Reputation: 49384
I am using this code to display the pages in a menu:
wp_list_pages('title_li=&');
There are a few pages that I would like to exclude from the list.
How would I do this please?
Note: I am using friendly URL's so the id's are actually names not numbers.
Upvotes: 0
Views: 234
Reputation: 540
You can write
wp_list_pages('title_li'=>'&', 'exclude'=> '1,5,7');
where 1,5,7 is id of pages you want to exclude from list. comma separated.
Upvotes: 2