How can i get search results from two different blogs [ www.mysite.com and www.blog.mysite.com ] using a single search form.
Leave a Reply
You must be logged in to post a comment.
How can i get search results from two different blogs [ www.mysite.com and www.blog.mysite.com ] using a single search form.
You must be logged in to post a comment.
It depends on the setup; if they are setup as multisite, check this plugin: Multisite Global Search
If that doesn’t work, I’d try custom Google search. They should allow you to search on both sites.
I tried Barry’s idea!
I can retrive search results by switching two databases, but i cant show combined results.
For example i have to show results from first blog and then i have to show the next blog’s results.
I find pagination for the search results also difficult. So Google custom search is the easy and possible solution for this.
The other option would be to write a custom page where it searches one db switches db’s search again and switch back. (or table prefix)
But without more information about your setup.
I’d go for Google Custom Search