Hello, I've been spending quite a bit of time at wordpress.org's codex trying to figure this out, but I'm not a PHP expert and I can't get my attempted coding to work. I'm modifying Corporate for my wife's site, and trying to add categories to the navbar of Header.php. We'd like the pages links to stay there (because there won't be many) then we'd like the top categories from the posts right next to them. Each main category should be a rollover that brings up the child categories below it, like this (pages denoted with P):
HOME ... ABOUT US(P) ... CONTACT US(P) ... CATEGORY 1 ... CATEGORY 2 ... CATEGORY 3
.................................................. .......CHILD A ........CHILD D ........ CHILD F
.................................................. .......CHILD B ........CHILD E ........ CHILD G
.................................................. .......CHILD C
Here is the code from Header.php, for convenience:
Code:
<div id="navbar">
<ul id="nav">
[*]Home
<?php wp_list_pages('title_li=&depth=4&sort_column=menu_order'); ?>
[*]Categories
<ul><?php wp_list_categories('sorderby=name&depth=4&title_li='); ?>[/list]
[/list]
</div>
Thank you very sincerely in advance, I've been banging my head on this for hours.