Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_activity_add() creating double activities


  • Ryan Hellyer
    Participant

    @ryanhellyer

    I have a post-type which I want to add to the activity stream. I can do this easily with add_post_type_support( 'events', 'buddypress-activity' );.

    But I sometimes want to add an activity to specific BuddyPress groups. To do this, I’m using bp_activity_add(). This works when the add_post_type_support() function call is in place, but I end up with two activities in the main event stream. When I remove the add_post_type_support() function call, I get a 502 Bad Gateway error on trying to add a new post :/

    Do any of you know how I should work around this?

    Thanks :simple_smile:

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘bp_activity_add() creating double activities’ is closed to new replies.
Skip to toolbar