[wp-trac] [WordPress Trac] #52362: Not able to global search with multisite

WordPress Trac noreply at wordpress.org
Mon Jan 25 15:53:47 UTC 2021


#52362: Not able to global search with multisite
-------------------------------------------------+-------------------------
 Reporter:  ketanumretiya030                     |      Owner:  (none)
     Type:  enhancement                          |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  Customize                            |    Version:  5.6
 Severity:  major                                |   Keywords:  needs-codex
  Focuses:  accessibility, administration,       |  needs-docs
  coding-standards                               |
-------------------------------------------------+-------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52362>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list