[wp-trac] [WordPress Trac] #27701: WordPress Multi-site Global Query
WordPress Trac
noreply at wordpress.org
Mon Apr 7 20:19:43 UTC 2014
#27701: WordPress Multi-site Global Query
-------------------------+-----------------------------
Reporter: kegster | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
I have a unique situation where my entire network is a big CMS with one
site being the "admin" site, of which the users have access to view all
the information from all the sites on the network.
Instead of looping through each blog/site for the same query, I would love
to question if there's any possibility to do a global query?
The only solution I have deduced is that I need to create / maintain a
custom table or tables that basically stores at minimum the post ID, blog
ID, and post_type. I am trying not to isolate this enhancement to my own
project. I am aware this method does nothing to support WP_Query in any
way.
So on that note, how about something to modify WP_Query to accept a
'blog_id' parameter that allows for 'any' as an option as well (similar to
how WP_Query handles 'post_type' => 'any'.
I'm sure this had been thought of before, but unsure how that'd look. Blog
looping seems quite inefficient.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27701>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list