Hi, Can someone to help me how to do something like this - I'm using Wordpress like CMS. So I got main vertical menu from pages and subpages. I need one simple thing - want subpages to be shown in menu only when you click at it's parent page. Something like this: Page1 Page2 Page3 and when I press Page2 to look like this Page1 Page2 >Subpage >Subpage Page3 Thanks in advance!
Yep, but at the moment i'm using this way in my template <?php wp_list_pages('title_li=&depth=1&exclude='); ?> Code (markup): I'm not very good in coding and asking about the right code to place for this effect
This is what you need: This would do what you need. If it gives any error let me know so that I can test it in my server.
Yes, it's working but in this way are shown all subpages, not only under Page2 example. I already got this result with <?php wp_list_pages('title_li=&depth=2&exclude='); ?> Code (markup):
Yes, I thought about it later that it would happen. You need to make e more complex code with child pages. I don't have time right now, I hope I can come with something in the evening.