1 post
  • Has been part of the Envato Community for over 2 years

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!!

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes