headermenu: pages, categories, combination?
-
I have a theme-blog with a custom home-page, and on that homepage (home.php) there is a header, with a horizontal headermenu, just like on www.ads-software.com (thats why I chose it). Because I want to combine a blog with a site, I want to have some more ‘static pages’. But simply making a page doesn’t put it in the horizontal menu, only categories get into there.
In the theme I got, this is the menucode, that lists the categories in the horizontal headermenu:
<?php KFPrintCategories( $categories_to_exclude, false ); ?> <li class="current-cat"><a href="<?php bloginfo('siteurl'); ?>/" title="Home">Home</a></li>
This displays the categories in the header. So if I make a category to post in, it shows up in the headermenu. But since I want the pages (page: add new) to show up there and not the categories, I changed the code to:
<li><a href="<?php echo get_option('home'); ?>/">Home</a></li> <?php wp_list_pages('title_li=&depth=1&'.$page_sort.'&'.$pages_to_exclude)?>
that shows the pages, like ‘about’ and ‘contact’. These pages are editable, so I like it so far.
But now, when I add a post, I have to add it to a category! And the categories, ass you guess, do not show up in the headermenu anymore. So the only way to reach the ‘blogsection’ is through clicking the post on the homepage.
I don’t like that.
How can I fix this?
What I want is: a homepage, about 4 other pages, like ‘about’, ‘contact’, ‘portfolio’ that have the same header and footer, but an adjustable content. But I also want a page called ‘blog’, where all my posts (in different categories) should be on!
All these pages (blog and about and contact) should be in the headermenu.
(maybe it is because I cannot get all posts to appear only on a ‘page’, they somehow go onto a ‘category-page’ instead.)
Who understands my problem, and knows a way out?
- The topic ‘headermenu: pages, categories, combination?’ is closed to new replies.