Also, you can use this pattern to use $ inside a closure:

(function($) {

// ... all your jQuery code using a $ in here

})(jQuery);

- Richard

On Wed, Feb 4, 2009 at 3:04 AM, MH1988 <m.lawrencehu...@gmail.com> wrote:

>
> I finally found some documentation regardng this. It seems that using
> jQuery inconjuction with Wordpress is fine however, you must use
> jQuery () instead of $. Further details also suggest that Wordpress
> won't register a jQuery plugin.
>
> On Feb 4, 6:43 pm, MH1988 <m.lawrencehu...@gmail.com> wrote:
> > Oh, thank you for responding back. I didn't think I would get a reply
> > at all.
> >
> > The problem I am having seems to be that jQuery + the jQuery Cycle
> > plugin with simple fade and prev/next transitions does not work at
> > all. My main reason for using it is I would like to include it in each
> > Wordpress post when I want to present images. This is my page here: <a
> > href="http://www.culturesinbetween.net/NEWWEBSITE/archives/260";>page</
> > a>
> >
> > I have embedded jQuery v. 2.34 and the Cycle plugin v. 1.3.1
> >
> > What I have done is evoked the function within the header.php file.
> > The only thing I have done is put in the <div>'s in the Wordpress post
> > but nothing works.
> >
> > I've put overflow: hidden for the <div>
> >
> > I don't know why but works perfectly for users using Indexhibit
> > (www.indexhibit.org)
> >
> > Mike
> >
> > On Feb 4, 3:20 am, "Penner, Matthew" <mpen...@valverde.edu> wrote:
> >
> > > Is jQuery working at all?  I've noticed that WordPress can be very
> > > intrusive when you put javascript in posts.  When I would first write a
> > > post with js embedded it would work, but the instant I edited it online
> > > the "helpful" editor textbox would reformat my js and break it.
> >
> > > If you want your gallery to be a permanent fixture (ie. On the side bar
> > > rather than just a single post) I would suggest you edit your theme
> > > directly.  This should avoid any WordPress issues.
> >
> > > Matt Penner
> >
> > > -----Original Message-----
> > > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com]
> On
> >
> > > Behalf Of MH1988
> > > Sent: Tuesday, February 03, 2009 5:58 AM
> > > To: jQuery (English)
> > > Subject: [jQuery] Using jQuery with Wordpress
> >
> > > I am having problems using jquery with wordpress. I would like to use
> > > the simple gallery plugin but it will not fade in/out my images. Help?
>

Reply via email to