jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is included with WordPress, and available to both themes and plugin developers.

learn more… | top users | synonyms

0
votes
2answers
1k views

How to wrap posts into divs?

Does anyone know how I can turn this: <div id="mySlides"> <?php query_posts('showposts=4&cat=11'); ?> <?php if (have_posts()) : ?> <?php while ...
1
vote
1answer
107 views

Googles jQuery: Are There Avantages to Using It?

Are there any good reasons to pull Google's jQuery from their servers as opposed to using the one included with Wordpress? I'm confused as to why I might want to use Google's library. Doesn't ...
1
vote
2answers
534 views

Best way to include jQuery and fire with script at bottom of container

I'm going to be using a jQuery slider on my homepage only (not a WP plugin, but a third party). What I'd like to do is include jQuery, the plugin's jQuery script using a .js file, then include the ...
0
votes
1answer
1k views

How do I remove WordPress Custom Menus hover event and replace it with jQuery onclick?

I am using the WordPress (Appearance > Menus) feature to create a custom navigation menu. I created a menu item that has a dropdown and would like to activate the dropdown menu with a click rather ...
0
votes
3answers
1k views

wp_enqueue doesn't work

Some of you might know that I've been really struggling with trying to enqueue Javascript to my Wordpress theme and I just can't get it to work. I need to get this done somehow. I will keep this ...
0
votes
1answer
564 views

Yoast SEO breaking media upload

I have a very simple site that I've modified a very small amount. After installing the Yoast SEO plugin I found that it broke the in post media attach/upload. I'm about 80% sure it's related to Jquery ...
1
vote
4answers
362 views

Wordpress Ajax not function as I expect… what's wrong?

In functions.php I have: function testajax() { echo "test"; exit; } add_action('wp_ajax_testthisajax', 'testajax'); add_action('wp_ajax_nopriv_testthisajax', 'testajax'); In scripts.js I have: ...
0
votes
1answer
73 views

should i be checking for jquery before enqueing it in a plugin

At the start of a typical plugin which uses jquery I have something like the following wp_deregister_script('jquery'); wp_register_script('jquery', ...
0
votes
1answer
921 views

Having problems loading Jquery in functions.php

I'm trying to add some Jquery scripts to my Wordpress site, and unfortunately I cannot link you to the site as I'm working locally. It seems that the Jquery file is being loaded, as well as the ...
0
votes
1answer
3k views

How to save Uploaded image in custom option panel?

I'm trying to add a custom option panel to a new template following a tutorial found on NetTuts. I saved all the code for the option panel inside a file called optionpanel.php (LoL) and everything is ...
-1
votes
1answer
350 views

I need a Pop up with description when i click an image

i need a pop up with description of an image when i click that image. How can this be done? Is there any plugin in wordpress that can do this?
1
vote
3answers
3k views

Check if jquery library exist

How to check if jQuery library exist in head tags? <head> <script type="javascript/text" src="http://code.jquery.com/jquery-1.6.2.js"></script> </head> and if not exist how ...
0
votes
2answers
4k views

Jquery NoConflict Problem

i'm creating a wordpress theme and i am utilizing some scripts that use jQuery. It was working fine, until i enabled a particular plugin, named 'Paid Downloads'. This actually made all of jquery ...
0
votes
2answers
2k views

Properly embed javascript into WP (using function.php) - doesn't work?

It seems that my contact form's ajax javascript and the custom.js that I'm using for my drop-down navigation are interfering with each other. The contact form's ajax fuction will only work properly ...
0
votes
1answer
177 views

Using jquery and javascript in Wordpress

After trying for many many days without any improvement, I think I have no other choice but to ask for your help. I have to admit that I don't know much about coding, but I've tried various tutorials, ...
0
votes
5answers
4k views

Simple text and image slider

I've been looking for a slider that can slide whatever kind of content that I want to enter. I tried out various Wordpress plugins, but most of them only can slide Wordpress posts or images only with ...
0
votes
1answer
946 views

Using jQuery toggle() in WordPress post to show/hide Tweet button?

What is the appropriate way to use jQuery toggle() function in a WordPress post to show/hide a Twitter "Tweet" button? The problem I am encountering is when I put the code in my content-post.php, the ...
1
vote
2answers
348 views

Include jQuery plugin in Wordpress

Wordpress already comes with jQuery. But what if I want to use a jQuery plugin on the entire blog? What's the best way to include on the entire site? And what if I only want to include it on one ...
1
vote
0answers
503 views

Infinite Scroll deactivates Fancybox after loading second page [closed]

I'm using FancyBox and Infinite Scroll on this site: http://www.davidgoltz.de/2011/blog-page/ Everything works nice but after loading the second page (while scrolling down), the fancybox on the ...
-1
votes
1answer
351 views

jQuery cycle and WordPress: Captions, buttons, oh my

I'm attempting to use jQuery cycle to create a rotator on my blog (which will be used going forward on all other blogs) like the following: http://www.pbs.org/teachers <div id="feature-well"> ...
1
vote
0answers
91 views

Bug: Trying to open jQuery accordeon with category-ID [closed]

I created this little code here to open a category-list-accordeon when a specific post is opened. This is the code I made for it: http://pastebin.com/vskC7Hsi This works well. Every accordeon-tab has ...
0
votes
1answer
709 views

jQuery tabs plugin with callback to fetch data

I want to use tabs plugin and load tab contents using ajax. The problem is: the plugin requires a solid .php file to be specified in href e.g. <li><a href="ajax/content3-slow.php">Tab 3 ...
-1
votes
1answer
205 views

Jquery in IE, fully messed up

I am using the nivo slider in one of my website, the slider looks perfect in Firefox, but in IE 7, 8 its height is increased upto 1006px, the slider works, but the height has increased a lot, I have ...
1
vote
1answer
1k views

How do I pass WordPress's get_bloginfo('siteurl') to Jquery?

I'm guessing this is a really dumb question, but I'm far more familiar with PHP/WordPress and I'm just getting started with jQuery so I'm not even sure what to search on. Is there a way to pass the ...
0
votes
1answer
973 views

Error jQuery(domChunk).live is not a function

I'm getting this error in FireFox: Error: jQuery(domChunk).live is not a function Source File: http://www.bradford.nhs.uk/wp-includes/js/thickbox/thickbox.js?ver=3.1-20110528 Line: 26 This is the ...
0
votes
1answer
487 views

Is there a function to list all uploaded images? How can I add one?

Is there a PHP function that will return an array of all of my uploaded images? Or, failing that, how bout just my uploaded files? The end goal is to display a slideshow on my homepage: have it ...
1
vote
2answers
1k views

Jquery conflict

I have been trying and trying to fix jquery issues. i have in my header lots of jquery. I use it for slider and other things that are built into this premade theme. I am unable to add anything that ...
2
votes
2answers
1k views

problem with ajax and the path to the php page

i would like to call a php page from an Ajax method : the alert works fine, the code as well has been tested outside of wordpress, but here it seems that the php page is never called. I found some ...
0
votes
1answer
324 views

Admin menu success message

I have created a simple admin menu that allows users to enter in some basic information that is stored in the footer. When they click save the url appends &settings-updated=true Is there a way, ...
0
votes
1answer
389 views

A carousel slideshow plugin in JavaScript

Am looking for carousel slideshow plugin that is similar to the one implemented here. Any JavaScript slideshow that closely resembles that one would do. It does not even have to be a WordPress ...
2
votes
1answer
2k views

Hook the Keydown Event in the TinyMCE Post Editor

I would like to hook the keydown event in the TinyMCE Editor on the edit post admin page. I managed to hook the HTML content editor using the following code: jQuery('#content').keydown(function(){ ...
0
votes
2answers
2k views

Passing JSON-encoded HTML from Wordpress to JavaScript

I'm trying to pass a post's content (which may contain HTML) to JavaScript via wp_localize_script(). wp_localize_script() can't handle multi-dimensional arrays, so I'm encoding it in JSON and then ...
0
votes
1answer
239 views

Problem with custom function from jQuery slider tutorial

I found the perfect slider for my needs, the only issue now that is that I cannot get it to work correctly. Problem that occur is that the function created doesn't work like it should. It ought to ...
0
votes
1answer
2k views

Selecting multiple options onclick

I have a bunch of options that I'd like the user to be able to change in bulk. Here's my code example. When this option selection changes, <label>Default author</label> <select ...
1
vote
1answer
373 views

enqueue the scripts

I have a template that has been hardcoded in the header and it needs to be Enqueued. I don't know what to do and the template provider is giving me the run around. JQueries won't work because of it. I ...
-1
votes
1answer
255 views

Why won't this jQuery work in WordPress?

THIS WORKS: <script type="text/javascript"> function fadeReview() { jQuery(".reviewPanel .reviewPanel2:hidden:first").fadeIn(500).delay(3000).fadeOut(500, function() { ...
3
votes
2answers
352 views

AJAX function returning -1

I recently developed a small plugin for my site, that uses AJAX, and now I am trying to implement the same AJAX techniques for the same site's templates, but I keep getting -1 as the result, here is ...
0
votes
2answers
630 views

Populating shortcode values dynamically in theme template

I'm trying to use a jquery toggle shortcode in a theme template. The shortcode goes like this: [sws_toggle3 title="Title"]You can now see the displayed text.[/sws_toggle3] I want to pull posts ...
0
votes
1answer
482 views

inner anchor scrolling with wordpress

i got this page: http://www.amirwebdeveloper.com/blog/common-sense-sensibility-and-accessibility-or-how-not-to-drive-the-surfer-mad-guide im trying to make a inner page anchor: <a ...
1
vote
1answer
348 views

Automatic jQuery accordion from header tags

I want it to be fairly easy for the post author to setup an accordion, based on header tags. So for example this: <h3>Headline 1</h3> <p>Content.. lorem ipsum</p> ...
0
votes
1answer
358 views

“The Events Calendar” Issues in WP 3.2

After updating to Wordpress 3.2, the show/hide functionality of the event authoring area on "The Events Calendar" is backwards - when the "All Day Event?" checkbox is checked, the time boxes appear. ...
6
votes
1answer
6k views

CSS not pulling in for jQuery UI dialog

I want to add a jQuery dialog modal to a form page. When the dialog box is triggered I see the the text content but with no CSS. I'm pulling in the jquery in the functions.php for the page: ...
0
votes
1answer
320 views

Ajax request with jQuery without WP_ajax

I try to made a website in full ajax (a html5 website). I use jquery and innerShiv (for ie). For exemple I want to load all the content of the "section" tag of a page. When I use that script, it ...
0
votes
1answer
697 views

How to alter the text of the post “Excerpt” box label in WordPress post editor?

My theme gives the site owner the option of using each post's "Excerpt" field to fill in the "meta description" tag for each page. It would be helpful if I can filter the text label and description ...
0
votes
1answer
492 views

WordPress/jQuery pagination plugin for multiple lists

I have 3 shortcodes. Each of them will be displaying a list. PS> the lists do NOT contain wordpress posts/pages. Is there any WordPress plugin that can achieve the purpose? OR Please suggest me a ...
0
votes
1answer
194 views

I am not able to enable jQuery in theme settings

I have tried to - enable Use jQuery & then save changes. But after saving changes, checkmark Use jQuery automatically unchecks itself. I am not sure whats going on. Please help me here.
0
votes
6answers
2k views

WooThemes PremiumNews Theme jQuery Conflict with WordPress 3.2

This morning I updated my wp, and after that few of the jquery of my site is not working. I am using woo themes premium newspaper theme. After the upgrade, the categories drop down menu(superfish ...
1
vote
2answers
492 views

Get current logged in user under 3.1, re: remove “Howdy”

I use this in functions.php to change "howdy" to "Logged in as...." But now under 3.1 I get "Logged in as Your Profile" rather than "Logged in as <current user>" What needs to be changed so ...
1
vote
1answer
176 views

Tags in Wordpress 3.2

Why I can't add tags since Wordpress 3.2 ?! Ajax doesn't seem to work... I gonna be crazy. Any help please ?
1
vote
1answer
988 views

Creating custom AJAX requests

My question pertains to where I should create an ajax function that I'd like to call from my page view. I am using a jQuery validator on a custom form that should check the inputted zipcode against ...