Hello.
I'm making a (more or less static) website, where I have a horizontal menu showing all the parent pages. I have a few subpages connected as children to one of the parent pages. The links to the subpages are showing in the sidebar.php using the following code:
<?php
$children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
if ($children) { ?>
<ul class="submenu">
<?php echo $children; ?>
</ul>
<?php } ?>
But when I click on one of those links, the design is a mess. The content shows up in the sidebar. So here is my question: Can I make the content of the links in the sidebar show up in the "main content area" - if so, how?
And one more question: When I add a page as a child to a parent page, it's showing in the main horizontal menu, messing up the design - is it possible to exclude the title of this child page in the main menu, but still keep the listing in the sidebar (when the parent page with children is selected?
I really hope I can get some answers.
Thanks in advance,
Kralle