Skip to:

filtering out everything in Activity stream, but BPA+ and post updates

  • mud1



    I’d like to filtering the activity stream with this code:

    if ( bp_has_activities( ‘action=activity_update’) ) : bp_the_activity();

    but I want to replace ‘action=activity_update’ with a code which results that the activity stream will show only Album+ image uploads.

    What am I supposed to use? What is the name of the ‘action’ ?


Viewing 2 replies - 1 through 2 (of 2 total)

  • Mark


    Look at your database for the activity table, go through it to find a BPA+ item, then make note of the related action type and use that.



    Thanks for the tip, M.
    I found ‘single_item’ and ‘multi_item’ type in the wp_bp_activity table. These are belong to the bp_album. However, none of them are working properly. When I use ‘multi_item’ in this line

    if ( bp_has_activities( ‘action=activity_update’) ) : bp_the_activity();

    I only see that someone has uploaded a picture, but the picture isn’t shown. What I need I think is the ‘single_item’, but when I’m trying to use it the activity shows nothing at all. It’s empty. This can be a bug or something else.

    There’s another method that @boonebgorges figured out.

    function my_custom_query_filter( $query_string ) {
    $query_string .= ‘&per_page=10&action=activity_update’;

    return $query_string;
    add_filter( ‘bp_dtheme_ajax_querystring’, ‘my_custom_query_filter’ );

    Filtering the activity. However, with this piece of code nor the ‘single_item’, neither ‘multi_item’ work.

    I’d like to put together the ‘per_page=x’ action, ‘activity_update’ action and ‘single_item’ action. I tried it with & sign as you can see above.

    &per_page=10&action=activity_update –> they work together correctly, but the bp_album actions don’t.

    So to sum up, I’d like to show in the activity stream only the ‘activity_update’ and uploaded pictures (single_item / multi_item ?) with a maximum of 10 entry per page. Any idea?


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘filtering out everything in Activity stream, but BPA+ and post updates’ is closed to new replies.
Skip to toolbar