January 27, 2015 at 8:40 pm
#21242
m.l.cap123
Participant
I figured it out. Here’s the original code:
<div class="service-item clearfix">
<?php
if ( has_post_thumbnail() ) {
echo'<div class="service-icon">'.get_the_post_thumbnail( $post->ID, 'icon' ).'</div>';
}
?>
<h3 class="service-title"><?php echo $page_title; ?></h3>
</div>
<!– .service-item –>
And here’s the new code:
<div class=”service-item clearfix”>
<?php
if ( has_post_thumbnail() ) {
echo ‘ID ) . ‘” title=” ” ‘ . esc_attr(
$thumbnail->post_title ) . ‘”>’;
echo'<div class=”service-icon”>’.get_the_post_thumbnail( $post->ID, ‘icon’ ).'</div>’;
}
?>
<h3 class=”service-title”><?php echo $page_title; ?></h3>
</div>
<!– .service-item –>