#52362 closed enhancement (invalid)
Not able to global search with multisite
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 5.6 |
Component: | Query | Keywords: | |
Focuses: | multisite | Cc: |
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)
Note: See
TracTickets for help on using
tickets.
Hi @ketanumretiya030!
Your question would be better suited to WordPress forums: https://wordpress.org/support/forums/
Trac is used for core WP development.