• I’m having the following notice by the Theme Chack plugin :

    RECOMMENDED: No reference to the_post_thumbnail() was found in the theme. It is recommended that the theme implement this functionality instead of using custom fields for thumbnails.

    I do use post thumbnails, but not the_post_thumbnail(), because post thumbnails images are displayed as background images in my theme. I use the following code :
    $image = wp_get_attachment_image_src( get_post_thumbnail_id() );

    Could you change the check to take into account the use of get_post_thumbnail_id, as well as get_the_post_thumbnail ?

    Thanks

    https://www.ads-software.com/plugins/theme-check/

  • The topic ‘No reference to the_post_thumbnail() was found’ is closed to new replies.