Forums

2.5 Image Captions & Descriptions (1 post)

  1. linickx
    Member
    Posted 1 year ago #

    Hi,

    So I'm experimenting with the new gallery/media stuff in 2.5, I like that you can link to a page instead of just the image. I've found that

    <div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>
       <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

    Print exactly the same thing, i.e. if I upload an image to a post, give it a caption of "this is a caption" and a description of "this is a description" then in my post link to the attachment page, the page show the image with "this is the description" underneath it twice.

    I'm using the default theme, is anyone else seeing this or has something gone wrong with my install?

    BTW: the install was an upgrade to 2.5, not fresh.

    Cheers,
    Nick

Topic Closed

This topic has been closed to new replies.

About this Topic