BuddyDev

Search

How to limit the activity stream in total?

  • Participant
    Level: Initiated
    Posts: 5
    Josh on #55081

    I am using the max parameter to limit the activiy stream but when I put in 5 for example it shows 5 items, then when I click “load more” further 5 items and further 5 items and so on.

    How to limit the items at all? Show ONLY the newest 5 items and no “load more”.

    I know that I might achieve that deleting the “if ( bp_activity_has_more_items() ) : ?>” at the activity template but is there a better way to do what I want?

  • Keymaster
    (BuddyDev Team)
    Posts: 24827
    Brajesh Singh on #55097

    Please try setting per_page and max both. If that does not work, something is changing you max.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved