Filter the Activity Loop for Specific User Updates
-
Hi,
So for our sins we’ve customised our profile page to be a lot different to the core (not by choice), this works great bar a few anomalies. I’m trying to filter the activity loop to just show the displayed users posts. I’ve written up the code as follows:if ( bp_has_activities( $activity_id . '&user_id='.$userToFilter.'&scope=just-me&action="activity_update"&max=3&page_arg="true"' ) )
This gives me a loop of just 3 items (so some of it is being listened to!) but no pagination and no filtering on the displayed user (which is the value $userToFilter). I’ve echoed out the filter and it’s reading as: &user_id=1&scope=just-me&action=”activity_update”&max=3&page_arg=”true” which I think is right. Any guidance greatly appreciated, I tried the plugin for activity shortcode and got the same results weirdly.
- You must be logged in to reply to this topic.