Image in excerpt = permalink to post wont work?
-
Apologies if this is already answered somewhere in support. I’ve been searching all day and have found nothing here.
I’m a total novice too! So i hope all my terms are correct!Here’s the problem:
I’m using WP2.1 for my portfolio site. It’s therefore heavily image-biased.
I php the_excerpt in the portolio page using
<?php the_excerpt(); ?><a href="<?php the_permalink(); ?>"></a>
The excerpt is an image , so there’s an href=… in the excerpt.here’s example code for the excerpt:
<a href="https://www.richard-wilkinson.com/blog/wp-content/uploads/2007/03/adhd_large.jpg" title="ADHD In Adults"><img src="https://www.richard-wilkinson.com/blog/wp-content/uploads/2007/03/adhd_thumb.jpg" alt="'ADHD In Adults' (Telegraph Magazine)" /></a>
This seems to be confusing the permalink for the post because when I click on the image I get the image URL instead of a link to the post.
I just want to be able to click the thumbnail and go to the post.
There have been similar problems discussed on this forum, but I’ve found nothing on this actual prob.
I hope that makes some sort of sense. Let me know if anything (or everything!) needs clarifying.
- The topic ‘Image in excerpt = permalink to post wont work?’ is closed to new replies.