Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Highlighting the current forum tab

@gerikg

Member

Your code is much cleaner for my use.

I check a WP theme and I’m assuming it’s something like this…

<?php if (is_page()) { $highlight = "forum-link"; } else {$highlight = "current"; } ?>
<?php foreach ( $forums as $forum ) : ?>
<a class="<?php echo $highlight; ?>" href="<?php forum_link( $forum->forum_id ); ?>"><?php forum_name( $forum->forum_id ); ?></a>
<?php endforeach; ?>

but it’s not is_page(), it’s something else.

Skip to toolbar