Default featured image in search results

Hi, Guys!

I am probably wasting your time, but I would appreciate if you give me a direction.

I have installed an FAQ plugin and everything works fine except the images.

The plugin has no featured image option and, obviously, you do not display them.

On the other hand, there might be a place to specify a default image for posts without one.
This would work for me perfectly.

Please let me know.

Best,
Andrey

Hello Andrey,

Can you please contact the plugin support and see what they say? Also you can try to use another plugin.

Kind Regards, Roman.

Hi Roman,

Thank you for the reply!

I have fixed the issue by doing the following:

  • Created images folder inside the template
  • Created default-image.jpg file and uploaded into the folder
  • Opened content.php inside of the discussed theme
  • Added ELSE fallback for the default image under has_post_thumbnail() validation

That did the trick I was looking for.

Best,
Andrey

Great! You are welcome Andrey.

And thank you for sharing a solution.

Kind Regards, Roman.