Below, an example of what’s needed to use ThickBox.
<?php
wp_enqueue_style('thickbox');
wp_enqueue_script('thickbox');
?>
<a href="#" id="taxonomy_banner_image" class="taxonomy_banner_image">
Click Here
</a>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#taxonomy_banner_image").click(function() {
tb_show("", "filename?TB_iframe=true");
return false;
});
});
</script>
tb_show
parameters:
- title of the box.
- url of file and with parameter
iframe=true
I think this will give you an idea how to use the ThickBox. If you face any problem, let me know.