Make WordPress Core

Opened 9 months ago

Closed 9 months ago

Last modified 9 months ago

#52362 closed enhancement (invalid)

Not able to global search with multisite

Reported by: ketanumretiya030 Owned by:
Milestone: Priority: normal
Severity: major Version: 5.6
Component: Query Keywords:
Focuses: multisite Cc:


Hello All,

I have created a multi-site and try to make a custom global search page those are searching data from all the children site and display all the search results on the main site.
below is my site structure
https://demosite.com (main site) (i want to display all sub-site search results on this main site.)
https://demosite.com/uk (sub site)
https://demosite.com/usa (sub site)
https://demosite.com/canada (sub site)

I have tried to make a custom query with array(s=values) but it is not working with the child site but works fine on the parent site.

Please give me any reference I have also experimented with switch_to_blog(1); with multiple times search page but it's not helpful and network_query_posts() is not work.

Change History (2)

#1 @dingo_d
9 months ago

  • Focuses accessibility administration coding-standards removed
  • Keywords needs-codex needs-docs removed
  • Resolution set to invalid
  • Status changed from new to closed

Hi @ketanumretiya030!

Your question would be better suited to WordPress forums: https://wordpress.org/support/forums/

Trac is used for core WP development.

#2 @SergeyBiryukov
9 months ago

  • Component changed from Customize to Query
  • Focuses multisite added
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.