How can I add images to the WordPress search results page?



I have added the Swiftype WordPress plugin, and I am interested in showing the Featured images as part of the search results. How do I go about doing that?

When using the Swiftype WordPress plugin, we will automatically index the link to your WP post’s featured image (if one is present).

However, the styling of results on your search engine result page is handled at the WordPress theme level, most commonly within your Theme’s search.php file.

This is where you’d add your styling for the inclusion of thumbnails and any other relevant information you’d like returned with your search results.