Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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"/>
</a>

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
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.