Sean,

JQuery in WP 2.3.2 is up to version 1.1.4. I imagine at WP 2.5 it will move to 
v1.2.x.

In your header file (header.php) you need to add the following line BEFORE 
the line that reads <?php wp_head(); ?>.

<?php wp_enqueue_script('jquery'); ?>

so that it reads:

<?php wp_enqueue_script('jquery'); ?>
<?php wp_head(); ?>

Gerry



From: Benjamin Sterling 
Sent: Monday, January 07, 2008 7:01 PM
To: jquery-en@googlegroups.com 
Subject: [jQuery] Re: Using jQuery in Wordpress


Sean O,
I just include it in my theme:

<script type="text/javascript" src="<?php 
bloginfo('template_directory');?>/common/js/jquery-1.2.1.min.js"></script>

Not sure how to include what they have in the core, but I think it is out of 
date anyways. 


On 1/7/08, Sean O <[EMAIL PROTECTED]> wrote: 


  So I'm trying to use jQuery in Wordpress (2.3.2)...  Mostly for site
  design/effects now, eventually for posts too, if possible.  It looks like
  jQuery is in the WP core now, but when I Firebug a few $() functions, I get 
  errors.

  Any trick to getting this going?  Googling provided sparse / old articles.


  Thanks,

  SEAN O
  _______________
  www.sean-o.com
  --
  View this message in context: 
http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p14672948.html
  Sent from the jQuery General Discussion mailing list archive at Nabble.com.





-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com 


--------------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.17.13/1212 - Release Date: 06/01/2008 
22:55

Reply via email to