Front page latest images wont hyperlink correctly. Bug?
-
I am having difficulty adding a hyperlink to images accompanying latest posts. This is basic functionality and I am at a loss as to why it is not working. I have tried several coding solutions, all major browsers, different workstations, and think I might be missing something obvious. Either that, or WordPress is handling images differently in the latest section. Curiously linking seems to work well in every other area of the site, and the coding and css is identical.
Currently, the image urls are added as custom fields, and then called at the beginning of the latest post
I have tried several different coding fixes, none of which have worked:
<!– ” title=”<?php the_title_attribute(); ?>”><img src=”<?php $values = get_post_custom_values(“image”); echo $values[0]; ?>” alt=”” class=”latest-image”/> –>(without the comment indicators)
I have also tried using
<?php $image = get_post_meta($post->ID, ‘image’, true); ?><?php echo $image; ?>
As well as embedding the image in the excerpt and linking it directly. None of these have worked, although the generated source code correctly names the image. For example, the first code example above correctly generated:
<!–
<img src=”https://littlebobeeeep.com/wp-content/uploads/2009/12/sotc1.jpg” alt=”” class=”latest-image”/> –>Does anyone know where I might start looking for an answer? I feel like difficulty with such a basic issue must have been encountered by others.
Thanks in advance,
Paul
- The topic ‘Front page latest images wont hyperlink correctly. Bug?’ is closed to new replies.