Make Search Function include subdomain (blog.ourwebsite.com)

If you transform your main website’s WordPress into a multi-site environment, you can move blog.yourdomain.com to be a network site.

Once you do this, you could use the Multisite Global Search plugin to add a widget that searches all network sites.

It would be easy to move your standalone blog.yourwebsite.com to a network site:

  1. export the content from blog.yourdomain.com,
  2. create a subdomain WordPress network on your main website,
  3. edit your blog.subdomain.com settings (Settings > General) to change the site and WordPress URL to blog2.subdomain.com,
  4. rename your subdomain blog to blog2 in cPanel,
  5. create a network site called blog.yourdomain.com
  6. import the content you exported earlier.

Done.

PS – You’d need to copy any themes and plugins you have on blog2.yourdomain.com into the main WordPress installation.