Support » Plugin: Default Post Thumbnail Image » get_post_thumbnail_id();

Viewing 1 replies (of 1 total)
  • Plugin’s faq

    My selected post thumbnail does not show, why not?
    Although this plugin hooks into the get_the_post_thumbnail() function to show your selected image it does not alter your posts, so has_post_thumbnail() returns false.

    To display the thumbnail without fail remove any if conditions to just leave the get_the_post_thumbnail() function

    for example, change this <?php if ( has_post_thumbnail() ) : ?> <?php echo get_the_post_thumbnail(); ?> <?php else : ?> Some other html <?php endif; ?>

    to this <?php echo get_the_post_thumbnail(); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘get_post_thumbnail_id();’ is closed to new replies.