skromta
Member
Posted 2 years ago #
I've got several WP-installations on the same domain name, they are installed as sub-directories so it looks something like this:
example.com
|
+--- blogA
+--- blogB
+--- blogC
Currently I've got one of these blog set at the main blog so when someone go to example.com blogA is shown. However, I was playing with the idea of having a common "landing page" for these blogs - so when someone visits example.com they would be shown a page with three columns with the latest entries from each of the blogs.
But I don't really know what the best way to accomplish this is, could anyone give me some advise on this?
You could make a static front page for BlogA to pull in RSS feeds from all three. Or do that via a regular PHP page and 'move' blogA from root back to BlogA.
Either one works :)
skromta
Member
Posted 2 years ago #
I was looking at making a static page for blog A but I can't figure out how to add a RSS parser to the page content. I can't find it in the documentation ... I found the code that is used for the rss widget but I'm unsure of how to use it from a page template.
Does anyone have a hint on how to do this?
Try this: http://www.corvidworks.com/articles/easy-feed-reading-with-simplepie
It's what I used to do something similar back in the day :)
skromta
Member
Posted 2 years ago #
Thanks, that worked perfectly
WordPress has RSS built in, see the following for an example.
http://codex.wordpress.org/Function_Reference/fetch_feed
Which replaces the older deprecated fetch_rss ...