I seem to be having problems when using custom page templates using
These pages are always displayed at the bottom of the website in a menu.
The problem is, that they should have a collapsible menu with the children in them, but the children are not showing. These children do not have the same template type as the parents, which is the cause of my problem, I guess.
Below you can find how I call
wp_list_pages. It does fetch and display the parents correctly, but not the children.
$brands = wp_list_pages(array('title_li' => '', 'post_type' => 'page', 'meta_value' => 'brands.php', 'lang' => $GLOBALS["pll_language"], 'showposts' => 20));
Any thoughts on how I can resolve this?
EDIT This is an example of the structure of the pages.
- Shoe 1
- Shoe 2
- Shoe 3
- Brand 2
- Brand 3
- etc... until brand 9
But shoe 1 could be removed at any time and shoe 4 can be added at any time. Since I don't want to update the menu all the time, I only want to have to add "Nike", "Brand 2" to the menu and all the other pages would have to load automatically. Any ideas?