Embed an Activity stream like in Group & Profiles
Hey Guys, first off Im using the newest WP and BP versions…
So as the title says I would like to show the groups activity feed in a random page. I have tried to follow this guide with no luck: https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/
After following all the directions it seems as thought there is an error in the code because I keep on getting a cannot save syntax error. I think there is an unbalance in tags.
Here is the query string that I am using:
bp_has_activities( bp_ajax_querystring( 'activity' . '&show_hidden=true&display_comments=threaded&action=activity_update&primary_id='. $group_id) )
That is the correct filter and that works ok, but I have the Plugin Activity Plus installed and for some reason its not showing as well.
I just want to load an activity stream exactly as it is shown on the groups page and profile page filtered by group-id. CSS + Commenting + Everything.
I guess it would be something like bp_buffer_template_part( ‘activity/index’, null, false ), maybe something little more customizable with filters and stuff.
Have you tried using Brajesh’s BP Activity Shortcode, it’s an simpler way of accomplishing the task.
I edited your post to highlight the code, you do that by enclosing your code in 1 backticks.
I will check it out and report back. Thank you.
I like it but their are some features missing, like forcing the loading of hidden posts.
Maybe I can take it and build upon that, I dont know.
From the lack of replies I’m assuming their isn’t a straight forward approach at replicating the exact structure of the activity (or even other aspects or the plugin).
I reckon try to build on that, otherwise you can create your own page based on the master templates in `plugins/buddypress.bp-templates/bp-legacy (or bp-nouveau)/buddypress/activity etc.
There’s a few template files that built the activity page, activity loop, index etc, you could make copies of these and load them from your theme, the alternative is to simply overload these template files in order to get the activity page working more like you want it.
I will look into both options to figure out what works best for me.
Thank you for your help
I ended up going with Brajesh’s BP Activity Shortcode they do fantastic work on plugins for buddypress
You can try this plugin as well https://wordpress.org/plugins/shortcodes-for-buddypress/ and try shortcode
[activity-listing object = groups]
I will try and give it try once I get a chance. For now I am happy with Brajesh’s BP plugin.
- You must be logged in to reply to this topic.