1 post
  • Has been part of the Envato Community for over 1 year
lotfi69 says

hi everybody,

i have big problem with the function has_post_thumbnail. the condition doesn’t work and i don’t know how resolve it.

[code] <?php if (has_post_thumbnail()) { ?> <?php the_post_thumbnail(‘post-excerpt’); ?> <?php the_time(‘j’); ?> <?php echo strtoupper(get_the_time(‘F’)); ?> <?php the_time(‘Y’); ?> <?php } ?>[/code] the function is in a loop and in function.php i have add_theme_support('post-thumbnails', array( 'post' )); set_post_thumbnail_size(300, 275, false); add_image_size('post-featured', 1080, 200, false); add_image_size('post-excerpt', 1080, 275, true); add_image_size('tdac-thumb', 90, 90, true); please help me!!
by
by
by
by
by
by