Title: calling caption associated with a specific image
Last modified: August 19, 2016

---

# calling caption associated with a specific image

 *  [zwacklmann](https://wordpress.org/support/users/zwacklmann/)
 * (@zwacklmann)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/calling-caption/)
 * I am using the magazeen Theme which is inserting timthumb resized images into
   posts by pulling them directly out ouf the upload directory. In order to facilitate
   this the user needs to enter the Images code as a custom field.
 * Now, I was wondering if it was somehow possible to retrieve the information wordpress
   has associated with this image, the caption in particular.
 * Below is the code used to pull the image, I imagine the to pull the caption I
   would have to use a similar code.
 * `<a href="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo
   get_post_meta( $post->ID, "image_value", true ); ?>&w=600&h=600&zc=1" rel="lightbox"
   title="<?php the_title_attribute(); ?>"><img src="<?php bloginfo( 'template_directory');?
   >/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true );?
   >&w=225&h=246&zc=1" alt="<?php the_title(); ?>" /></a>`

The topic ‘calling caption associated with a specific image’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [zwacklmann](https://wordpress.org/support/users/zwacklmann/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/calling-caption/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
