This question already has an answer here:

I'm writing an admin plugin which produces a pop up to give the user a preview of content.

I tried to use thickbox as suggested here - http://codex.wordpress.org/ThickBox but it does not respect dimensions.

My questions are - is this just broken, should i go custom, or is there now a better way to do this?

Thanks in advance,

 <?php add_thickbox(); ?>
 <a href='#TB_inline?width=400&height=400&inlineId=preview' class='thickbox'>View all<a>";
 <div id='preview' style='display:none;'></div>

marked as duplicate by brasofilo, gmazzap, fuxia Sep 17 '13 at 1:02

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    function wpse_1234() {

<a href='#TB_inline?height=300&amp;width=400&amp;inlineId=preview' class='thickbox'>View all<a>";
 <div id='preview' style='display:none;'></div>

Try this way it should work for thickbox.you can call those thickbox in a init hook.


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