Forum Replies Created
-
However, my true issue was that i wanted one activity stream with ONLY MY GROUPS activity, and another with all other activities, excluding group contents, event the public ones (so, including profile updates, group joined, group created, docs created etc etc).
Should i now do that by combining actions ? Can you please point me in the right direction ?
Ok, slipped in a reset query and now seems to be working. Thank you.
That helps, but only fixes 80% of the problem.
Instead of first loading only status updates (20 in the loop), then loading all bp activity upon “load more”, it now first loads only status updates, then a loop of 20 items of all bp activity, then continuous loops of 20 activity updates at a time.
So it basically works, then forgets to work for one loop, then works again until the end. HOW is that even remotely possible ? (sooo frustrating)
update : from what i understand, the way the read more link works is it fetches my basic activity-loop.php template:
`function bp_get_activity_load_more_link() {
global $activities_template;$url = bp_get_requested_url();
$link = add_query_arg( $activities_template->pag_arg, $activities_template->pag_page + 1, $url );/**
* Filters the Load More link URL.
*
* @since 2.1.0
*
* @param string $link The “Load More” link URL with appropriate query args.
* @param string $url The original URL.
* @param object $activities_template The activity template loop global.
*/
return apply_filters( ‘bp_get_activity_load_more_link’, $link, $url, $activities_template );
}
`so how can I have one loop with a read more returning only status updates, and another returning group activity ???
Yes, awesome that works. thank you so much.
I must have overlooked it in the codex.
(and sorry about the code, typo)