wp_list_pages won’t exclude pages
-
I am trying to control the list of pages dispayed in my main menu. I have tried to use the ‘exclude’ and ‘include’ statements in wp_list_pages but they don’t seem to work. The generic code is:
‘
- “>Home
- “>Home
- “>Home
‘<?php wp_list_pages(‘title_li=&depth=0&sort_column=menu_order’); ?>
I have tried changing it to this, but nothing happens on the page:
‘
‘<?php wp_list_pages(‘exclude=10&title_li=&depth=0&sort_column=menu_order’); ?>
I have also tried this, but then only the link to ‘Home’ appears:
‘
‘<?php wp_list_pages(‘include=2&title_li=&depth=0&sort_column=menu_order’); ?>
Can anyone tell me what I’m doing wrong?
Thanks,
Joe
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wp_list_pages won’t exclude pages’ is closed to new replies.