[wp-hackers] wp_enque_script and conditional tags
Austin Matzko
if.website at gmail.com
Sun Jul 20 00:53:50 GMT 2008
On Sat, Jul 19, 2008 at 6:54 PM, scribu <scribu at gmail.com> wrote:
> function js_loader(){
> if ( is_home() )
> wp_enque_script('script_name', 'script_src', array('dependencies'));
> }
>
>
> The condition in the if clause is never true. What should I change to
> enque a script only on the home page?
Could it be that you're misspelling wp_enqueue_script ?
More information about the wp-hackers
mailing list