Skip to:
Content
Pages
Categories
Search
Top
Bottom

per_page option in bp_has_activities()

Viewing 7 replies - 1 through 7 (of 7 total)
  • @odiggy

    Participant

    I’m using that although I have a problem where it shows all updates but minus the very latest. >: /

    @odiggy

    Participant

    Sorry I don’t know how to display code in here, I’ll try wrapping it in .

    @odiggy

    Participant

    Didn’t work…

    @odiggy

    Participant

    if ( bp_has_activities('action=activity_update&per_page=5') ) : bp_the_activity();

    omitting php tags…

    @r-a-y

    Keymaster

    If you’re modifying the AJAX activity stream, you need to modify the $query_string.

    Read this thread for pointers:
    https://buddypress.org/forums/topic/how-can-i-set-show-newblogposts-as-default-on-acitivity-stream

    @muchad

    Participant

    put this in your functions.php in your theme

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

    you just change per_page option as you need…
    it’s run for me, you can see here http://blog.uin-malang.ac.id

    @monikagolianek

    Participant

    Thank you Muchad. That was really easy and worked for me as well

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘per_page option in bp_has_activities()’ is closed to new replies.
Skip to toolbar