• This is my theme code

    <?php if ( has_post_thumbnail() ) {
    				the_post_thumbnail('thumb-large');
    				$caption = get_post(get_post_thumbnail_id())->post_excerpt;
    				if ( isset($caption) && $caption ) echo '<div class="image-caption">'.$caption.'</div>';
    			} ?>
    		</div>
    	</div>
    
    <?php endif; ?>

    i cannot add title image, how to insert (title) of image for this code…?
    Thanks be4, sorry for bad English…

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Feature Image Cannot showing Title of Image’ is closed to new replies.