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
3answers
1k views

show custom field content in jquery tabs

I am trying to make a post which will contain several custom fileds. the custom fields should show within jqery tabs. I have already made it in here: ...
0
votes
1answer
1k views

Change Query Arguments (filter) with jQuery/Ajax or PHP?

I have a pretty complex wordpress-site for travelling. There's an "archive-hotels.php", a template for the custom-post-type "Hotels". Inside the CPT is a taxonomy called "City", so we can do this: ...
4
votes
3answers
392 views

Handling jQuery Component Collision

In plugin development, what is the best practice to prevent jQuery component collision on the front end? For instance, let's say I include the jQuery Apprise dialog in a plugin that loads this on the ...
0
votes
1answer
603 views

How to declare/provide file path in JQuery which is emeeded in the Wordpress theme

How to give the source location path in the jquery code, where my file is in cah-new/wp-content/themes/theme_name/includes/func.php and i have to give that path in the jquery code ...
0
votes
2answers
419 views

Add text to metabox input text field from Thickbox

I have a custom post type with a metabox text input area that I want to have a shortcode inserted into from a thickbox when a link is clicked on from the modal window. Using the code below right now ...
0
votes
1answer
454 views

Register google jquery gets overwritten by plugin

I'm currently using a plugin, which includes jquery version 1.6.4 like this: function thethe_image_slider_head_scripts(){ wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', ...
1
vote
1answer
61 views

what's the best way to add a class to the div with a class of post every 4 seconds using jquery? [closed]

what's the best way to add a class to the div with a class of post every 4 seconds using jquery? <div class="34 post"> <img width="311" height="417" src="#" class="#" alt="newspapers" /> ...
1
vote
1answer
3k views

How do I make script load after jquery?

function load_my_script(){ wp_register_script( 'my_script', get_template_directory_uri() . '/js/myscript.js', 'jquery' ); wp_enqueue_script( 'my_script', 'jquery'); } add_action('wp_enqueue_scripts', ...
1
vote
1answer
213 views

Wrap the widget content with a div and get the widget title outside? [closed]

In this subject you can wrap a widget with the title outside but if you don't want a title, a <div> will not be closed, and the template is broken. So I would like to do this in jQuery instead ...
0
votes
1answer
521 views

Sorting dynamic table content with jQuery

I've been trying to use numerous jQuery plugins for tabling sorting in WordPress and have had absolutely no luck. Can anyone make a suggestion for a plugin that sorts tables of dynamic content? I'm ...
0
votes
1answer
402 views

Change jQuery(document).ready to $.delegate in wordpress

I am trying to change: add_action('wp_footer','myscript_in_footer'); function myscript_in_footer(){ ?> <script type="text/javascript"> jQuery(document).ready(function(){ ...
1
vote
5answers
3k views

How to load a jQuery script last?

How to get this to load last? <script type="text/javascript"> jQuery(document).ready(function(){ jQuery("div.domTip_tipBody").mouseover(function(){ jQuery("#yyy ...
0
votes
2answers
797 views

How to use media upload on metabox post page without breaking TinyMCE?

I'm using the following code for upload in multiple mextaboxes in a post or page admin section. Works for metaboxes but breaks the TinyMCE insert image. I want to know please how I can achieve this ...
0
votes
1answer
179 views

Need help with adding jQuery script to WP and calling script to page

I've written a pretty simple jQuery script, and I don't know how to call it. It's in its own directory. First, how do I register it, and then how do I enqueue it? I assume that's the order it's done ...
0
votes
1answer
74 views

Help with IF has focus then… statment

in a sidebar I have: <div id="my_id"> [shortcode]</div> It outputs a title that when hovered on drops down to show a menu. When hovering on the title a background color shows up and ...
0
votes
1answer
231 views

ajax not working in plugin

The code below works beautifully outside of WordPress but as soon as I attempt to execute it inside of WordPress nothing happens: var js = jQuery.noConflict(); js(document).ready(function(){ ...
0
votes
1answer
65 views

Changing WordPress URL breaks some jquery functions

Old URL: http://www.pillerdesigns.com/foxterrier/ New URL: http://www.foxterrier.com/ Process: copied all files to new server, updated wp-config.php, changed site and WordPress URL in Settings, ...
0
votes
1answer
42 views

Name of JQuery technique used on this site [closed]

What is the effect or jquery plugin used to create the on hover video effect used on this site? http://www.iwc.com/it/collezione/
0
votes
2answers
224 views

Weird issue where form field loses focus to previous form field even with JS disabled

I've never seen a problem like this in my 12 years of working on the web. Even with Javascript disabled (in all browsers, with all users on different computers), a field that gets focus then loses it ...
0
votes
2answers
1k views

Best Way to Include Scripts on a Specific Template Page

This is something that has always confused me and I could use some help. I want to do four things directly above the closing body tag: include jQuery (WordPress version is fine) include a jQuery ...
0
votes
1answer
852 views

Ajax (jquery) wp_query pagination returns -1

I am currently developing an ajaxified theme for wordpress. I am listing the posts in a particular category, but the pagination returns -1 when clicked. Lets say I set showposts to 3 and a particular ...
2
votes
3answers
649 views

add_image_size and iPad Retina Display (high pixel density)

i was just wondering if anyone has come up with or thought about a solution for inline images and the new iPad coming out. i would love to use a combination of add_image_size and this jQuery Script ...
8
votes
5answers
5k views

Including jQuery and JavaScript files the correct way

I'm having some trouble with this. I'm not sure how to do it the correct way, and I read so many different techniques and ways to do it that I don't know what to make of it. Some questions and ...
-2
votes
2answers
6k views

jQuery conflict

I am trying to run the following jQuery to change the text of my username and password boxes so that they do not need a label (inside <script> tags): jQuery(document).ready(function($) { ...
0
votes
3answers
317 views

Page reload occurs before request finishes

I wrote a plugin to send an invitation to a friend and am submitting a form using AJAX and used the tips talked about in 5 tips for using AJAX in wordpress and another article referenced in the AJAX ...
0
votes
1answer
582 views

How do I get my nav menu to show sub pages?

http://webdesignsalemoregon.com/westernmennoniteschool/ is my website. I've got the top menu which is the one that was in the theme when I started to customize it. It's got a test drop down that ...
4
votes
5answers
5k views

Wordpress and isotope filtering

Im trying to use Isotope(http://isotope.metafizzy.co/) to filter my Wordpress posts, http://i44.tinypic.com/fco55k.jpg this is how my site looks like, i would like to filter posts depending on a post ...
2
votes
2answers
622 views

Modify this loop to fit my jQuery slider (slides)

I´m trying to make a slider which takes thumbnails from a certain custom post type and displays for of them for each "slide". I get the slider and thumbnails to work like they should, but I´m unsure ...
1
vote
2answers
343 views

Plugin for a text modal box [closed]

I have a contact form with "Accept Privacy Policy" check box. I need to add a link, that will create a modal box displaying the privacy policy. Just like fancy box but for text. I was looking for a ...
0
votes
1answer
112 views

Loading scripts on a single page plants the script in the footer

I'm using this code to plant a script on a spesific page, it works but inserts the script into the bottom of the page not the top - I'm at a loss to explain why! Is there a way to do this that results ...
1
vote
3answers
4k views

Unhook jQuery from WooCommerce via `functions.php`? [closed]

So I am using the http://woothemes.com/woocommerce/ plugin for eCommerce and it's registering jQuery local and conflicting with my default jQuery call from Google CDN. It took a long time but I ...
0
votes
3answers
216 views

Add jQuery function to media button

I have added a custom button to the media actions in a custom theme, function wp_myplugin_media_button($context) { $wp_myplugin_media_button_image = ...
0
votes
1answer
126 views

Hiding the media-new.php File URL option via jQuery

As the title says I'm currently having some difficulties hiding the File URL option via jQuery. I've been trying this: // add_action( 'admin_footer-media.php', 'cor_remove_tr_file_url' ); ...
0
votes
1answer
1k views

Theme has superfish - how to add supersubs?

I'm using a theme that is using Superfish for the navigation menu. The problem is, if the sub item is too long it will drop underneath, i want to keep the individual menu item's text on one line. Now ...
0
votes
1answer
276 views

Drag and Drop Metadata Menu Order

I'm not sure this has been answered previously.. I have a frontend form where the user fills out a form that has dynamic fields where they can add more fields if they choose to. The jquery names the ...
0
votes
1answer
873 views

wp_enqueue_script jquery and jquery ui not working

I am using the following script to call my Jquery and Jquery UI as well as a custom-script.js. Currently it works to the point of being able to see the resource in the inspector and the tag's are ...
2
votes
2answers
1k views

Unable to get_the_content(); of a post in Wordpress via AJAX

I'm trying to ajaxify my Wordpress theme and I use the method described here and I'm now trying get_the_content of post via functions.php. Using jQuery, when I do alert(data) I get the 'title' echo ...
0
votes
1answer
839 views

how to include a simple jquery file into a wordpress plugin

ok this is my first time to include jQuery into wordpress and it has taken me the 2 full days trying to figure this out. No matter how many articles I read I cannot find a perfect example. Ok so this ...
0
votes
2answers
537 views

How to include this jQuery File in wordpress?

Ok I have this jQuery that I have tested in a static html page and it works fine. How would I include jQuery to work on wordpress in a plugin? So this is the html page. <head> <title> ...
-1
votes
2answers
927 views

Integrating WordPress Content into a jQuery Slider

I have a pretty basic 'featured-list - image slider' implemented above my content in my custom WordPress theme. How do I integrate WordPress content into the slider so that the slide content is pulled ...
1
vote
1answer
724 views

jQuery ajax call throws an HTTP 302

I'm trying to implement a jQuery Autocomplete where the Autocomplete gets its data from a ajax source. However, for some reason when I make the call it results in a 302 which in turn results in a 404. ...
0
votes
1answer
137 views

Ajax request sends url rather than data

I have a very weird error running on my plugin. I am currently developing a plugin that will allow the user to create routes and specific dates for the route. The dates are more or less tickets that ...
0
votes
1answer
164 views

jQuery .load and WP function

I am attempting to get the Quick Chat WordPress plugin to load only if you click on a button. I'm currently using this code: $('#chat').load('path to my wp template/quick-chat.php'); ... where the ...
2
votes
2answers
1k views

Wordpress Enqueue Script Chaos (jQuery & Foundation.js)

I've been working on building a theme for the past couple days now, and I've run into a wall. While I originally included foundation.js as an enqueued script, I couldn't remember why I had added it. ...
0
votes
3answers
2k views

How to enqueue jquery in admin and why is it not already there?

Why does the jquery below not fire? Its going to the "else" every time. if ( is_admin() && $pagenow == 'theme-install.php' && $_GET['tab']=="upload"){ ...
0
votes
1answer
466 views

Getting a 'slide down' js panel implemented within WP

I'm trying to implement a very simple vertical slide down panel in Wordpress, I've tried jbar (http://tympanus.net/codrops/2009/10/29/jbar-a-jquery-notification-plugin/) and an easy JS method I found ...
0
votes
2answers
9k views

Uncaught TypeError: Object #<Object> has no method 'datepicker' [closed]

I want to use jQuery Datepicker in my website. However when I use the same I get the following error. Uncaught TypeError: Object # has no method 'datepicker' I've googled on this for quite sometime. ...
-2
votes
1answer
332 views

Javascript from Easy-Fancybox place into footer

the Easy FancyBox WP-Plugin works fine for me. Just the script will be placed in the header of my source, like other plugin, too. I´d like to push it down to the footer of my website (incl. the ...
1
vote
2answers
775 views

Multiple jQuery conflict unsure of why

I am trying to use the same image fader in two different spots on my testing site. The one in the top banner works, and the one in the furthest right sidebar kind of worksThey both now do not work. ...
0
votes
3answers
2k views

Adding URL of PDF from Thickbox in a Meta Box

I have created some meta boxes of pages on the theme i'm working on. The idea is to have a input field, then a button to upload files. The meta box is working properly. When I click on the button, ...