January 26, 2015 at 12:06 pm
#21178
m.l.cap123
Participant
Thanks. I’m trying to add an anchor which I think looks like this:
‘<a href=”<?php
the_permalink(); ?>” title=””><?php echo $page_title; ?>‘
I’m adding it here:
if ( has_post_thumbnail() ) {
echo'<div class=”service-icon”>’.get_the_post_thumbnail( $post->ID,
‘icon’ ).”<a href=”<?php
the_permalink(); ?>” title=””><?php echo $page_title; ?>‘</div>’;
}
?>
It’s breaking the site so I loaded the original file. Can you be more specific about where exactly I need to add the code and what exactly the code should be? Thanks.