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?
Please try setting per_page and max both. If that does not work, something is changing you max.
Regards
BrajeshHi Josh,
You are right. The max does not work. Load more is still shown. The only way around it would be to filter onbp_activity_has_more_items
and disable it.Regards
Brajesh
You must be logged in to reply to this topic.