[wp-hackers] wp_enqueue_script() and URLs with 2+ parameters
dangayle at gmail.com
Fri Feb 27 20:19:36 GMT 2009
within conditional tags and not into wp_enqueue_script() because I
only want it to load on one specific page. For instance, we have a
don't want to load elsewhere.
This would certainly be handy.
On Feb 27, 2009, at 12:05 PM, Mike Schinkel wrote:
> However, I do think it would be incredibly helpful if it could be
> rethought, possibly with a plugin, that would allow the calls to
> wp_enqueue_script() and similar to be stored in the same file as
> page template that uses it, or at least a similarly named file. My
> current project needs this on tens of pages; for example I have a
> script that is specific to the video gallery page and is doen't need
> to be and probably shouldn't be included elsewhere.
> What would be nice is, for example, if we could create a function in
> a page template called (something like) "init_template()" and have
> that function called during init() for a page template.
More information about the wp-hackers