Support » Themes and Templates » How to add caption to the image.

  • hello there,

    I Created a theme and added some images to the page using the custom field section. but i am having problem in adding caption to that image.

    Here is my code

    <?php if( get_post_meta($post->ID, 'First', true) ) {
    									echo "<a>ID, "First", true) . "' class='lightbox evolution' rel='gallery-1'><img src='" . get_post_meta($post->ID, "First", true) . "' class='plan-img' width='295' alt='' /><div class='imgcap'> I WANT CAPTION HERE </div></a>"; } ?>

    Any help would be appreciated

    Thanks
    Mandip

    [please start only one topic per problem – continue with http://wordpress.org/support/topic/adding-caption-in-my-custom-field-added-image?replies=1 and add more information there]

  • The topic ‘How to add caption to the image.’ is closed to new replies.