Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Highlight specific post categories in the activity stream?


hypergripe
Participant

@hypergripe

Thx @Xevo, we are trying to add the class using this code:

class="<?php if ( in_category(1)) { echo "cat_a"; } elseif ( in_category(2)) { echo "cat_b"; } else { echo 'cheese';} ?>"

Obviously not working, but as you say, BP doesn’t seem to pass the category with the rest of the post info.

Any ideas how to create a function to do that?

Skip to toolbar