How do I activate jQuery/script on demand?
1. Register jQuery and the plugin within your head wp_register_script( ‘jquery’ ); wp_register_script( ‘your_jquery_plugin’, STYLESHEETPATH, ‘jquery’, ‘0.0’, false ); 2. Register a meta box It should be a simple checkbox. Please do it like it’s described on the codex page for add_meta_box() (don’t just repeat this one here). If you follow the rest, then the … Read more