Second(ary) activity feed possible?
-
Hi,
I’m trying to show a part of the activtiy feed (entries categorized as “tips” with feed meta category) on a different page than the standard activity page. Using the activity loop in a custom page template it’s easy to display the restricted activities on a standard WP page.
However, as the standard WordPress page is not a registered BuddyPress page none of the Buddypress CSS classes and Javascript is loaded, which means that the custom loop looks pretty bad and is largely non-functional.
So far I’ve come up with two ideas about how to solve this:
1) using different feed templates on the standard activity feed page and indicate which one to use by adding a variable in the URL – this approach runs into problems because the standard feed is loaded by Admin-Ajax and there’s no apparent way to add an additional URL induced context variable to the ajax query – or is there?
2) turning the standard WordPress page into a BuddyPress page (so the activity JS and CSS is loaded). I’ve been thinking about actually comparing loaded scripts and manually enqueuing them for the new page-template, but I wonder if there is not a much simpler solution.
I’ve tried ideas like this “prehistoric” one, but they don’t appear to work anymore – https://buddypress.org/support/topic/make-your-own-custom-buddypress-page/page/2/
Is there a modern equivalent to this?
Should I maybe approach this completely differently?
Thanks for any help!
- You must be logged in to reply to this topic.