Pages & Subpages – Please help
First thanks for taking the time to look at this, I really need some specific help on this.
I am creating a corporate website, just using WordPress as the CMS if you like to make it easy for the company to edit pages etc. So I am not using the “blog” posts and only using pages.
I want it so in the sidebar the “Parent Pages” are listed, then when you click the parent page it takes you to page, but the menu on the sidebar lists the “Child Pages” underneath the parent page.
I have been trying to work this out for about 2 hours, by reading the codex (http://codex.wordpress.org/wp_list_pages) but to no real avail.
Here’s how it looks so far: http://img153.imageshack.us/img153/6074/menusuk2.jpg
(note the style for the parent and child pages should be the same, but I haven’t looked at that yet)
And here’s the code:
<div id="sidebar"> <ul class="pagenav"> <li><h2>Navigation</h2></li> <?php wp_list_pages('sort_column=menu_order&depth=0&title_li='); ?> <li class="pagenav">
- The topic ‘Pages & Subpages – Please help’ is closed to new replies.