[Resolved] wp_list_pages – Include Pages and their children??
Ashford Theme, Drop down menu is on
I want to include certain pages by ID and all their children (automatically). Is there a way to use wp_list_pages to do this?
I’ve tried this code but it doesn’t include the children. Not sure if it won’t work or if I am doing something wrong.
wp_list_pages(('page' == get_option('show_on_front')) ? 'depth=0&sort_column=menu_order&title_li=&include=1,2,3,4,5' . get_option('page_on_front') : '&sort_column=menu_order&title_li='); }
- The topic ‘[Resolved] wp_list_pages – Include Pages and their children??’ is closed to new replies.