Let’s face it, WordPress Search is slow and very innaccurate. Thankfully, Google is both blazing fast and accurate. In addition, Google’s Google Custom Search has evolved to be embedded into your own blog (or web site).
Permalinks and Google Custom Search
For a site with permalinks like mine, I did have to make one additional modification, though. I had to make the action in the form tag relative rather than supplying the entire URL with domain.
Google Custom Search has another nice feature… it will pull the featured image if your site is utilizing them and you have optimized headers using microdata in accordance with schema.org. I utilize the Yoast WordPress SEO plugin to take care of that – and my site is updated with featured images for each post.
Make a Search Result Page Template
/* Template Name: Google Custom Search Results */
[ Insert your Google Custom Search Results Code Here ]
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Now, when you add a new page for your results, select this as the template:
I wouldn’t hesitate at doing this to any blog – not just for the blazing improvement in speed but also for the relevant results. You may even make a couple bucks on the side as well! Take a look for yourself and give my new Search form for a spin! You won’t be disappointed!