Pages, subpages and sidebar
-
Hi
I’m working on this site:
http://www.kulturvesterbro.dk/
It’s based on the Pool theme, because i like the tabbed navigation.
As you see I have some main sections:
Forside (frontpage)
Kulturhuset
Kulturstaldene
BasementI want to list childs of those pages as a submenu when they are active.
So when you for example click on the tab of the Main section “Kulturhuset” the subpages of “Kulturhuset” should appear in the sidebar/menu. And not any links to other pages.
Kulturhuset (active tab)
(sidebar)
– About
– Information
etc.I only want the subpages or childs of that section to appear in the menu. What should my approach be?
I was thinking, that I should create a template for each main section. The only difference in those templates would then be the wp_list_pages command. It would look something like:
<?php wp_list_pages(‘child_of=0’); ?>
Is this the right approach? Or should I make different sidebars for each Main section instead? Wouldn’t I then need a template for each Main section AND a Sidebar for each. What is the smart approach here?
Is there some way for WordPress to recognize a specific parent page and then call e.g. a specific sidebar?
I hope my post and my description of the way I want my site to behave makes sense. Otherwise ask.
Thanx in advance
Mark
- The topic ‘Pages, subpages and sidebar’ is closed to new replies.