Is there any way to hack the Recent Global Posts Feed plugin so it only pulls posts from specified blogs, instead of all blogs? If not, please consider this a request for a plugin that will create an RSS feed for posts from specific blogs.
We have a number of "Featured Blogs" and would like to have a feed that pulls posts from only those blogs. We would then use that feed in the new Multisite Dashboard Feed Widget so all members would see the latest posts from these blogs in their dashboard. Neat, huh?
Extra Credit: Creating a new Recent Featured Blog Posts Widget (similar to Recent Global Posts Widget) would be just dandy too!
I'm hoping it might be easy enough to add a config section to the Global Posts Feed plugin where desired site IDs could be listed. Thanks for the consideration!
Is there any way to hack the Recent Global Posts Feed plugin so it only pulls posts from specified blogs, instead of all blogs? If not, please consider this a request for a plugin that will create an RSS feed for posts from specific blogs.
We have a number of "Featured Blogs" and would like to have a feed that pulls posts from only those blogs. We would then use that feed in the new Multisite Dashboard Feed Widget so all members would see the latest posts from these blogs in their dashboard. Neat, huh?
Extra Credit: Creating a new Recent Featured Blog Posts Widget (similar to Recent Global Posts Widget) would be just dandy too!
I'm hoping it might be easy enough to add a config section to the Global Posts Feed plugin where desired site IDs could be listed. Thanks for the consideration!
10635 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
15th May 2011 (1 year ago)
#
Hiya jcjnr,
For now, it'd be a manual hack. Not a bad feature request though, so I'll notify a couple devs to see what there take on it is. The recent-global-posts-feed.php file already has a few configuration options in it.
Anyway, for this option you'll have to edit the SQL query on line 58. Just add the following into the phrase, I've copied the bits around it so that you can see how it'll fit: site_posts WHERE blog_id IN (2, 5, 7, 9) AND site_id = %d
Change the values 2, 5, 7, 9 to the Blog IDs you actually want to query.
10635 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
22nd May 2011 (1 year ago)
#
Awesome! (And thanks for the mention :D) Very thorough writeup as always! Favoriting this thread so I can find it again should someone else have a similar need.
Responses (4)
Sales & Support Lead — 15th May 2011 (1 year ago) #
Hiya jcjnr,
For now, it'd be a manual hack. Not a bad feature request though, so I'll notify a couple devs to see what there take on it is. The recent-global-posts-feed.php file already has a few configuration options in it.
Anyway, for this option you'll have to edit the SQL query on line 58. Just add the following into the phrase, I've copied the bits around it so that you can see how it'll fit:
site_posts WHERE blog_id IN (2, 5, 7, 9) AND site_id = %dChange the values 2, 5, 7, 9 to the Blog IDs you actually want to query.
Hope that helps!
Member — 15th May 2011 (1 year ago) #
Awesome, thanks! Still trying to get it working with that dashboard feed widget, but this did help me create a validated feed for specific sites.
Member — 20th May 2011 (1 year ago) #
FYI: Just wrote detailed steps for creating a Recent Featured Posts plugin, and how to add it to the Multisite Dashboard Feed Widget.
Thanks again for the help!
Sales & Support Lead — 22nd May 2011 (1 year ago) #
Awesome! (And thanks for the mention :D) Very thorough writeup as always! Favoriting this thread so I can find it again should someone else have a similar need.
Thanks again!
Become a member