Can we display sub domain posts in main domain home page

Posted in: Newspaper
Post count: 65

Hi Tagdiv,
Is it possible to display sub domain posts in main domain home page.
I have WP2016/2015 installed on some my sub-domains and main domain will be newspaper
Now if I want to show my sub-domain “UAVDrones” content on my homepage Drones Category, which has newspaper. How do I do that.
Can you guide me on this

Post count: 9544

Not a theme topic.
This is a WordPress programming topic, to pull content across sub domains. Usually this is done with multi-site, where the sub domain and main site share the same dbase. More complex to pull across two sep dbases.

Basically you’d need to create a function/plugin to query the other database to pull in the items to your other dbase.

Or, you’d need to setup a custom widget that shows the RSS feed from the other topics (this is how I do it, actually, on one site). So, using an RSS feed widget with simplepie, I can get the headlines from the other sub-site, drop them in to a (in my case) sidebar widget area, but the links still go to the sub-domain.

Way outside of the theme support, probably, but maybe somebody else has an idea.

(( I don’t work here. ))

Post count: 65

Thanks CS,
You showed me a good way
I know it waaaaay offf theme support, I’m just asking if developers of NP can shed some light from their developer perspective.

Post count: 22421
Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.