Adding jquery and thickbox to WordPress theme

I would like to add thickbox for the template which I develop to WordPress. At this time I’m trying with a clean template that have only header.php, footer.php,index.php, and functions.php. I’ve included the <?php wp_head(); ?> into header.php and the <?php wp_footer(); ?> into footer.php. I’ve included the wp_head like this: <?php wp_enqueue_script(‘jquery’); wp_enqueue_script(‘thickbox’); wp_enqueue_style(‘thickbox’); … Read more

Media upload finished hook

I’m developing a plugin which uses wordpress’s thickbox media library to handle media upload and selection. All is well but for the fact that I would like to automatically ‘redirect’ to the ‘media library’-tab after I uploaded/ wordpress finished crunching the file. So basically i’m looking for a hook that’s fired after the crunching of … Read more

ThickBox replacement

I’m searching, unsuccessfully unfortunately, for a ThickBox replacement used in Media Uploader. Any search fails on how to leverage Media Uploader and nothing about a script used for modal windows. Can somebody help me? Is there a way to use the same modal as Media Uploader is using, but to put custom content in it … Read more

Custom media upload content for inserting custom post shortcode

I’m working on a plugin that creates custom post type “portfolio” along with shortcode to insert in any page or post. The shortcode is: [portfolio option1=“1” option2=“0” option3=“1” ] And it works just fine, it shows all custom posts via custom WP_query. But I want to go further. Create a custom button next to upload … Read more