1

How can i get search results from two different blogs [ www.mysite.com and www.blog.mysite.com ] using a single search form.

3 Answers 3

4

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.

1

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.

0

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.