Determine WordPress path
-
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)
Viewing 1 replies (of 1 total)
The topic ‘Determine WordPress path’ is closed to new replies.