• Hi all,

    I use a wordpress multisite installation.

    I need to manage custom post type in network admin panel. So, the registration of my cpt working nice but… that makes the cpt management available for all blogs except for the network admin panel …

    in fact, i wish have a menu (in network admin ) like page menu and post menu, i mean “add”, “all” etc… by registering a cpt.

    Anyone can help me ?

    NOTE : sry, i’m french :/ not an english natural speaker

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    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.

    Thread Starter Seysharym

    (@seysharym)

    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 8 years, 2 months ago by Seysharym.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘register_post_type in network admin’ is closed to new replies.