We help IT Professionals succeed at work.

Wordpress - highlight "post page" menu item with static home

jasotasticon asked
Here is my exact problem:


There are a bunch of solutions here, but they all require messing with core files...

Can anyone think of clean way to do this?
Watch Question

It certainly works as it should do with Thematic framework out of the box

1. The whole pages system is changing with 3.0 anyway - I haven't had a chance to delve into it yet as far to busy on projects
2. 2010 is being worked on by Ian Stewart to be the new default theme - from memory his Kirby theme worked ok as well.

Note: I didn't see anything there related to core, it is all themes or plugins stuff - there was even a suggested plugin to use.



Sorry, I meant theme not core... I can go in and edit it there I guess. Just so frustrating having to make all these little edits to theme for things that ideally would, "Just work."

thanks though,
- J
This is the benefit of using child themes and functions.php

As an example I am using Thematic on a new site

I have a standard drop down menu in the header, and another one in the footer, but I also wanted different menu items for visitors and members.

This is the code I used for the new menu for visitors

/// Top Page Navigation

//  Add a dynamic menu using wp_list_pages
function childtheme_menu() { ?>
     <div class="menu">
          <ul class="sf-menu">
                <?php wp_list_pages('include=2,15&sort_column=post_date&title_li='); ?>
<?php }

This is the code for the items in the footer

// Footer section for terms of service etc

function footer_pages() { ?>
     <div id="footer-page" class="footer-page-div">
            <div id="list-block">
          <ul class="footer-pages">
                <?php wp_list_pages('include=13,12,14,81,102&sort_column=post_date&title_li='); ?>
<?php }

What I still have to do is use is_use_logged_in() for another menu for logged in users

The new menu system in 3.0 will work better, but there will still be a need to drop down to functions.php or use a plugin for some things, it is just how things are.
I am not much of a programmer, but I know how to search with Google and use code snippets.


Ah, this is very interesting! I had not heard of this method before (I am not a programmer either, I just get paid to do it ; )

Thanks for the info! I will give it a try.

- J