WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking to edit an attachment and I'm trying to supply a link to the existing preview image.

<a href="media-upload.php?type=image&TB_iframe=true&" class="thickbox" title="Edit Image" onclick="return false;" class="thickbox">
<img src="<?php echo $src_output; ?>" class="preview-upload"/>

I tried adding a post_id argument to the href but the thickbox only shows the media-upload box for a new upload. How can I edit an existing image using a link on the preview image?

<a href="media-upload.php?type=image&TB_iframe=true&post_id=<?php echo $id; ?>" ...
share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.