BuddyDev

Search

[Resolved] BuddyPress Activity Shortcode exclude

  • Participant
    Level: Initiated
    Posts: 15
    Philippe on #27799

    Hi there,

    Thank you for this wonderful plugin. I use BuddyPress Activity Shortcode with the following Shortcode:
    [activity-stream title=”” scope=groups max=5]

    I would like to exclude some types of activities. E.g. New membership of a group.

    There is an exclude attribute for the shortcodes but as fas as I understand it, the attribute only filters by a specific id given.

    Is there a way to cull a specific type of activity?

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #27806

    Hi Philippe,
    Thank you for the question.

    The plugin does not support excluding types(nor does BuddyPress core). You can restrict to one or more type using the “action” parameter.

    You can specify them like

    
    action=activity_update,updated_profile
    
    

    Here are some types for example.

    
    activity_comment
    activity_update
    bbp_topic_create
    friendship_created
    joined_group
    new_avatar
    new_blog_post
    new_member
    updated_profile
    
    

    Regards
    Brajesh
    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    Philippe on #27882

    Hi Brajesh,

    Thank you for the fast answer. I use this shortcode:
    [activity-stream title="" scope=groups max=5 action=activity_update]

    It works fine. Only posts are shown now.
    If somebody posts something with an image attached (I’m using mediapress), the post is not shown.

    Do you know how I could include these posts with images?

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #27890

    Hi Philippe,

    You are welcome.

    Please use the type mpp_media_upload to include MediaPress updates.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    Philippe on #28343

    That worked. Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #28349

    You are welcome.

The topic ‘ [Resolved] BuddyPress Activity Shortcode exclude’ is closed to new replies.

This topic is: resolved