• Resolved Cathalmb

    (@cathalmb)


    Hi there,

    I’ve a slider displaying featured images on a page, one page is calling an image from a custom post type using a custom field and displays the image title in the slider caption area.

    <li><a href="<?php the_field('show_link'); ?>"><img src="<?php echo $image[0]; ?>" title="<?php echo get_the_title(); ?>" /></a>

    However, due to a clients request another exact same page layout and style, uses an automatic listing functionality and the featured image. And isn’t showing the caption.

    Code:
    <li><a href="<?php the_permalink(); ?>"><?php if ( has_post_thumbnail() ) { the_post_thumbnail('pillarfeat'); } ?></a>

    Source:
    <img width="460" height="283" src="#" class="attachment-pillarfeat wp-post-image" alt="RTÉ Concert Orchestra" />
    No title tag since the update.

    This had been working last week perfectly using the second code, when I viewed source the image title was being called using the featured image with the_post_thumbnail. But for some reason since the company updated to WP3.7.1 the featured image title is no longer being called in the source, and therefore the caption is missing.

    Can anyone shed any light on this? Might the Featured image function have been changed in the update to call the image title?

    I hope someone can help. Thanks in advance.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Featured Image Captions missing WP 3.7.1 ??’ is closed to new replies.