#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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @ketanumretiya030!
Your question would be better suited to WordPress forums: https://wordpress.org/support/forums/
Trac is used for core WP development.