I am using wordpress for a project, and I am struggling to get the nav to show the pages I only request in the wp_list_pages function, I am wanting to only show 5 pages in my main mav, and then if that page has any children then show those in a dropdown, below is the code that I am currently using.
<?php wp_list_pages('title_li=&sort_column=post_date&include=138,110,135,101,167'); ?>
How do I show the children of the included pages?
I find what works best for me in these situations is to forget about using wp_list pages. Instead, make a query and then iterate through the results to get page children.
Example:
And your output should look something like: