Changing the post thumbnail link onto blog index page
-
Hi everybody,
i need to solve this problem. I’d like to change the post image link in the blog index page, i’d like that the post images point direct to the post.This is the site: https://www.leotorri.com/wordpress/?page_id=1069
And this is the part of the code i’d like to change:
<!– Begin each blog post –>
<div class=”post_wrapper”><?php
if(!empty($image_thumb))
{
$small_image_url = wp_get_attachment_image_src($image_id, ‘blog’, true);
?><br class=”clear”/>
<div class=”post_img”>
<ahrf=”<?php echo $image_thumb[0]; ?>” class=”img_frame”>
<img src=”<?php echo $small_image_url[0]; ?>” alt=”” class=””/></div>
<?php
}
?>I’ve change the word ahref to make you read my post correctly.
Thank you very much and regards
Manuel
- The topic ‘Changing the post thumbnail link onto blog index page’ is closed to new replies.