Show only status update in Buddypress Activity Stream


function custom_query_filter( $query_string ) {
$query_string .= 'action=activity_update';

return $query_string;
}
add_filter( 'bp_dtheme_ajax_querystring', 'custom_query_filter' );
Advertisements

4 thoughts on “Show only status update in Buddypress Activity Stream

  1. Hi, thanks for the info. I tried and it has an issue. When the page loads, it will load just updates. Cool. But, when you click on LOAD MORE ACTIVITY, it will load the same activity that has been loaded previously. Its not displaying the older updates, just the same ones of the first page.

    Any fixes for this to truly work?

    Thanks my friend. You have pointed me in the right direction.

    • Hi Leonardo, thanks for your comments. Sorry for delay in responding to your comment. Even i was trying to find a better way to solve it. We can do it using css and wordpress default functional hooks. Please follow the below steps. It might not be the correct one for now. But its little near to the solution for our problem. Please find below steps.

      Copy the below code and paste in your active or currently using theme “functions.php” file

      function show_activity_update()
      {
      if(is_page('activity'))
      {
      echo '<style>ul#activity-stream li.groups , ul#activity-stream li.blogs , ul#activity-stream li.members , ul#activity-stream li.xprofile , ul#activity-stream li.friends {display:none;}</style>';
      }
      }
      add_action('wp_head','show_activity_update');
      

      Hope the above solution will help you get the better idea…

      Note: Each list item in activity has unique class so that we can hide the activity which we don’t want to display.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s