Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,850
- How-to & Troubleshooting
- 128,867
- Creating & Extending
- 25,736
- Requests & Feedback
- 9,445
- Third Party Plugins
- 9,772
- Showcase
- 3,317
- Ideas
- 1,388
- Miscellaneous
- 9,132
-
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?
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS