• Hello, I am not an expert on codes or modifications so I’m asking for your help.

    I’m trying to put thumbnails in the post on my page and the theme incorporates the get-the-image plugin.

    The code I’m using is this:
    <? Php get_the_image (array (‘image_scan’ => true));?>

    When there are no pictures in the posts, the author suggests using this code:
    <? Php get_the_image (array (‘default_image’ => ‘https://mysite.com/wp-content/uploads/example.jpg&#8217;));?>

    My question is:
    Is it possible to combine both codes?

    I want the posts without pictures, to show a default image. And those that do have an image, to show the thumbnail.

    Thanks in advance for your support!

  • The topic ‘Thumbnails for posts with images and a default image for those without it’ is closed to new replies.