What you are asking for is possible, but not simple. Your custom posts could occur on any number of different site tables. The only way to query for such posts would be to switch to each site in turn and query for that site’s custom posts. Eventually you would accumulate all of the posts in the network, but it is computationally expensive. Code to do this can be part of a custom network menu page. Before you look into writing code for such a page, try looking for an existing plugin that would meet your needs.
It would help a lot if such a menu page had a dropdown select field where you select which site you want to get posts from so that only one query needs to be run. If you do that though, it’s not that much different than selecting a site the usual way, then selecting the custom posts list for that site. Then no coding is required.
The same concept can be applied to regular posts and pages, but you encounter the same drawbacks. One other drawback is you probably cannot use the usual posts list table class to show network wide posts. A network wide version of it would probably need to be written.
The think is, i’m currently developping a portal management plugin. The idea is to make a page (with a page builder) in network admin panel and link it to all blogs that will using it.
In that way, i’ll can link more than two blogs to that portal you know?
In fact, after linking, the customer will automatically be redirected to the portal of one blog when he’s making a request for one one my blog and have the possibility to choice through the whole blogs are linked to this portal.
I want to keep the possibility to have some independant blog without any portal linked.
EDIT : I use a WPMU and i don’t found any plugin that meets my needs.
-
This reply was modified 9 years, 5 months ago by
Seysharym.