Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#52362 closed enhancement (invalid)

Not able to global search with multisite

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

Description

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
6 years ago

  • Focuses accessibility administration coding-standards removed
  • Keywords needs-codex needs-docs removed
  • Resolution → invalid
  • Status new → 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
6 years ago

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