Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Plugin: bbMenu 0.1 beta

Nice

Btw stubled on the BLIX theme from bbPress. It uses for each (I asked about this in some other posts) in it’s menu and could be the answer of my nr 1 problem.

Some peace of code:

foreach ($pages as $page) {

$page_id = $page->ID;

$page_title = $page->post_title;

$page_name = $page->post_name;

if ($page_name == "archives") {

(is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ' class="selected"':$selected='';

echo "<li".$selected."><a href="".get_page_link($page_id)."">Archives</a></li>n";

}

Now to confert it to this plugin, have to change ‘location’ input to: is_archive() || is_search() etc. Going to play with this :)

Skip to toolbar