If you don't want to include the CSS and JavaScript in each and every page do this:
This way the CSS/JS will only be included if the custom field is present.
If you want valid CSS and JavaScript, you might want to use Smoothbox instead of the original ThickBox. To do this, open "thickbox.php" and change the value of "INCLUDE_SMOOTHBOX" to "true". Once you've done that the CSS and JavaScript for Smoothbox will be included.
This plugin is released under the GPL.




