Skip to:
Content
Pages
Categories
Search
Top
Bottom

Lenght of Activitystream

  • Avatar of kidrob
    kidrob
    Participant

    @kidrob

    Hello there,

    i hope this is the correct forum for this question, so:

    How can i reduce the amount/lenght of the total Activitystream on this awesome Buddypress software?

    Many thx and greetings, Rob!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Maybe this update is helpful for anyone still looking for an answer. In the file activity-loop.php (themes/[themename]/activity) there’s a line which begins with: <?php if ( bp_has_activities

    Enter the following arguments to that line like so: .

    Now the activity stream only shows 10 items per page, instead of the default 20.

    you can simple put the followung code into your theme function.php without editing core file.

    /*Change the number of activity items to show per page */

    `function my_custom_query_filter( $query_string ) {
    $query_string .= ‘&per_page=11′;
    return $query_string;
    }
    add_filter( ‘bp_dtheme_ajax_querystring’, ‘my_custom_query_filter’ );`

    worked for me

    Avatar of ssmediaco
    ssmediaco
    Participant

    @ssmediaco

    Exactly what I wanted to do! Thanks!

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

You must be logged in to reply to this topic.