• This is really much harder then it should be… it seems.

    I need to be able to point to the JQuery library within a template… without hardcoding the full path (which could change depending on how / where the WordPress instance is installed.

    in my code is specify:
    <script type="text/javascript" src="/wp-includes/js/jquery/jquery.js"></script>

    That works… unless WordPress in installed in a subdirectory (as I do for beta or staging).

    There has to be a WordPress constant defined, or Function that returns the actual path… right???

Viewing 1 replies (of 1 total)
  • Thread Starter tmwagner

    (@tmwagner)

    As is usually the case, I found the answer myself…

    <script type="text/javascript" src="<?php bloginfo('wpurl'); ?>/wp-includes/js/jquery/jquery.js"></script>

Viewing 1 replies (of 1 total)

The topic ‘Determine WordPress path’ is closed to new replies.