Custom Featured Image For Search Results Page

The code in this tutorial enables you to add a different featured image for use when search results are displayed in Genesis using the search widget. This solution has been worked out based on the following question from a member :

I’d love to add one additional image to each post and specify that this additional image is only to be shown on the search results page as the thumbnail.

Here’s the demo video :

Demo Video

The demo video shows the default featured image displayed on all archives except for the search results page which uses a custom image you can add on every Edit Post screen.

Installation Steps

There’s 2 steps :

Step 1 : Install the ACF plugin and create a new field using the following settings:

Step 2 : Download the file below and upload it to your child theme folder.


Comments

One response to “Custom Featured Image For Search Results Page”

  1. Chris Connaker Avatar
    Chris Connaker

    WOW! You just saved me from spending an additional 20 hours trying to figure this one out.

    Thanks so much!

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.