Page Order and Expansion
-
This topic has been covered in this Forum, but I am a novice in php code, so you have to be very specific for me.
I have been able to hide sub-pages by using the following code:
<?php wp_list_pages(‘exclude=14, 16, 17, 18, 20, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41 &title_li=<h2> </h2>’ ); ?>
However, I want to be able to list my Main Pages by Menu Order, which means using this code:
<?php wp_list_pages(‘sort_column=menu_order’); ?>
But I also want the hidden pages to expand when one visits a sub-page.
In other words, Only the Main pages are listed whenever a Main Page is Visited. But once a sub-page is visited, the Side Bar lists gets expanded showing the sub-pages.
In my case, once you visit any of the pages listed in the exception above, – 14,16, 17, etc, all these pages become visible in the Sidebar.
How do i incorporate all of these
Thanks
The topic ‘Page Order and Expansion’ is closed to new replies.