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 have a plugin that calls the Media Uploader to allow users to add images to a Page. The uploader is being displayed and taking images fine, but it is not attaching them to Page ID 65 as I wish (or showing images attached to that Page as in the Gallery).

Am I missing something, or is this just not possible in WP? Thanks.


    $('.manage-images-button a.button-secondary').on('click', function(){

        tb_show('Manage Front Page Images', 'media-upload.php?referer=dd-options&TB_iframe=true&post_id=65', false);
        return false;


share|improve this question
up vote 0 down vote accepted

Bizarrly, the answer to this is to simply swap two of the parameters around -

tb_show('Manage Front Page Images', 'media-upload.php?referer=dd-options&post_id=65&TB_iframe=true', false);
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.