[wp-hackers] wp_enqueue_script Question
Austin Matzko
if.website at gmail.com
Thu Mar 27 13:01:03 GMT 2008
On Thu, Mar 27, 2008 at 8:58 AM, Chris Poteet <cpoteet at siolon.com> wrote:
> I have this. It adds the css but not the jquery. What am I doing
> wrong (please)?
>
> function postinfo_head() {
> wp_enqueue_script( 'jquery' );
> echo "<link href=\"". get_bloginfo('wpurl'). "/wp-content/plugins/
> post-information/post-information.css\" type=\"text/css\" rel=
> \"stylesheet\" media=\"screen\" />";
> }
>
> add_action('wp_head', 'postinfo_head');
"wp_head" is too late for queuing; you need to do it earlier, perhaps at "init."
More information about the wp-hackers
mailing list