Activity – Displaying category when new post is published
-
Hey there,
I’ve added a custom post type to the activity stream with this code:
function activity_publish_product_posts($productposts) { $productposts[] = 'g11_dossier_item'; return $productposts; } add_filter ( 'bp_blogs_record_post_post_types', 'activity_publish_product_posts' );
This works great, whenever I publish a post, it is recorded to the activity stream. I would now also like to display the category into which the post is added.
Does anybody have an idea how to do that?
- The topic ‘Activity – Displaying category when new post is published’ is closed to new replies.