Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: query/php problem

Well what I dont understand is that THIS works:

<li><a <?php if (is_front() || is_forum() || is_tag() || is_topic() || is_bb_feed() || is_bb_profile() || is_bb_favorites() || is_view())

{

echo "id="current"";

}?> href="index.php">Forums</a></li>

And this aint:

$current = ($rw['location']) ? ' id="current"' : '';

echo '<li ' . $first . '><a href="' . $rw['page'] . '"' . $current . '>' . $rw['item'] . '</a></li>';

Cause ($rw) will give: (is_front() || is_forum() || is_tag() || is_topic() || is_bb_feed() || is_bb_profile() || is_bb_favorites() || is_view()) too

Skip to toolbar