[Plugin: Lightbox 2] limit plugin to only single post??
-
How do you limit the plugin to being loaded ONLY on single posts and pages? I’ve tried to modified the code, but it seems to not do anything at all.
global $post; if (!is_single($post) && !is_admin()) { // if we are *not* viewing an admin page, like writing a post or making a page: wp_enqueue_script('lightbox', ($stimuli_lightbox_plugin_prefix.$stimuli_lightbox_js), array('scriptaculous-effects'), '1.8'); }
Please help…
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Lightbox 2] limit plugin to only single post??’ is closed to new replies.