Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Plugin: bbMenu 0.1 beta

Got the for each working:

<ul id="navlist">

<?php $pages = get_bb_menu();

if ($pages) {

foreach ($pages as $page) {

$page_id = $page->page;

$page_item = $page->item;

$page_location = $page->location;

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

}

}

?>

</ul>

The problem is, how can I let it spit:

<li><a <?php if (is_bb_search())

{

echo "id="current"";

}?> href="$page_id">$page_item</a></li>

And is_bb_search() is $page_location = $page->location;

Skip to toolbar