Basically I have a multisite setup where each site is just one single page (each has a different theme). How can I output that page content of any site on a page of the main site programmatically?
Like I have multisite on domain.com and I have sites like a.domain.com and b.domain.com, then how can I show the content on lets say domain.com/api/main programmatically?
I need clues on how can I go about it? Output buffering in some way? Mainly I only need the widgets to work. Don't need the is_* functions as its just one page site.
Its like I want to view the content of diff sites on a single page by passing on parameters upon checking of which it is figured out which site of the multisite needs to be shown at this request & then that site is shown as if it was opened by its URL. Right now upon receiving the request on domain.com/api/main, I am redirecting to the site URL (a.domain.com or b.domain.com) but I would like to render the output on a single URL only. Any clues?