Skip to:
Content
Pages
Categories
Search
Top
Bottom

Including post categories in the activity stream


  • rgbadmin7
    Participant

    @rgbadmin7

    hello team, i need to add my blog categories to my buddypress activity Stream, just like i saw on this thread: https://buddypress.org/support/topic/including-post-categories-in-the-activity-stream/

    The girl in that thread found a code and solved it but i still don’t know where to paste that code:

    if( $post->post_type == ‘post’ ) {

    $activity_action = sprintf( __( ‘%1$s added the post, %2$s in the categories %3$s’, ‘buddypress’ ), bp_core_get_userlink( (int) $post->post_author ), ‘‘ . $post->post_title . ‘‘, get_the_category_list( ‘, ‘, ”, $post->ID ) );

    }

    Please guys, someone give me a hand with this.

  • You must be logged in to reply to this topic.
Skip to toolbar