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
1answer
539 views

Multiple images with Media Uploader on front-end

I'm trying to implement a multiple image upload on a frontend form, using the built-in Wordpress Media Uploader. I managed to have a single image upload, but I can't find out how to have multiple ...
0
votes
1answer
63 views

Set cookie for visitor

I'm writing a new plugin that will allow visitor to vote. After a visitor rated a post, I'd like to block double voting. I think the better way to do it is using cookie, but of course I can't insert ...
0
votes
0answers
66 views

jQuery Ajax: re-executing plugin on success, when plugin function is NOT known beforehand

I'm a WordPress theme developer and I've building an ajaxified theme having structure like this ... <body> <div id="site-header"> content here </div> <div ...
0
votes
0answers
63 views

Page keeps refreshing with Ajax form

I have a simple form on my site with a simple jQuery Ajax call but the page keeps on refreshing. I know that the form is submitting OK but I can't get the alert to work. <script> ...
4
votes
2answers
349 views

Creating Ajax backend for Specialised Page Template? Should admin-ajax.php be used?

We're scoping an upcoming project that will require the development of a large php web application within an existing wordpress site - this is for our use only and we've no intention of trying to ...
0
votes
1answer
31 views

jQuery AJAX add json2 dependency?

I am working on a voting system in Wordpress with jQuery and AJAX. To make this voting system work I need jQuery in my theme. So wrote the code down in my functions.php. But for some reason my script ...
0
votes
2answers
103 views

jQuery does not work

I am working on a project where I need jQuery for. I added this to my functions, and the scripts are loaded in my header if I watch my page source, but jQuery doesn't work. What am I doing wrong? ...
1
vote
1answer
28 views

Format numeric symbols in titles

When I add title post as: this - is - post I view code source : this &#8211; is &#8211; post How to format code source as: this - is - post Error: I'm user jQuery UI autocomplete code ...
2
votes
2answers
93 views

Is jQuery included in WordPress by default?

When I downloaded the latest version 3.8.1, inside wp-include/js there is a jQuery folder. Can I assume that WordPress will always include it, meaning I don't have to make my own call? E.g. ...
0
votes
1answer
136 views

Drop Down menu expanded by default (on front page) [closed]

For this site users seem to have difficulty finding the site's content that is accessible through the 'Data' drop down menu on the top left. To improve this I would like to have this drop down menu ...
0
votes
2answers
237 views

Load random posts without refreshing page (jQuery)?

I really hope that someone can help. I would like to load random posts on the homepage when a "LOAD NEW MESSAGE" button is clicked. We have 200 short messages loaded as posts in Wordpress. ON the ...
0
votes
1answer
91 views

Save jQuery UI Sortable on Wordpress

I have basic jQuery UI sortable code that works perfectly. I just want the position of each item to save when a user changes it. I am using Wordpress multisite version 3.8.1 and each site will have ...
0
votes
0answers
70 views

Post Rating System with wordpress

I'm using a Post Rating System with wordpress and jQuery, i followed this tutorial for that. ` jQuery(document).ready(function(){ jQuery("a.like:not('.voted')").live("click",function(){ ...
0
votes
0answers
35 views

Custom class on Media image inserted in the editor

I would like to have different classes added regarding the options selected during the media insertion. When inserting a media, there are 3 options (media file, attachement page and custom URL) ...
0
votes
1answer
51 views

Fetching posts from wordpress function in ajax

I'm trying to fetch posts in ajax. Everything is working but It is showing only one post. Please check my code and tell me if something is wrong function ag_get_posts() { global $post; $args ...
0
votes
4answers
90 views

Force wp_enqueue_scripts to the HEADER?

A plugin I'm working on requires jquery to be loaded before the content is processed. Some stock themes, like 2010, 2011 and 2012 (I believe) put the JS in the footer. How can I force the scripts to ...
0
votes
0answers
35 views

JQuery problem display

Hy i have a small problem with NivonoSlider. This is my site - http://bit.ly/1iRSwcf When i check on a checkbox it display the archive base a custom field, in my example by color. The problem is: ...
1
vote
0answers
39 views

Voting comparison plugin gets stuck in a loop, stops generating new votes

Edit: cut down the text drastically, sorry about that! For some users, at some point it will suddenly stop loading new votes for them, either looping the same one over and over or the same set of ...
1
vote
0answers
174 views

jQuery and AJAX Not working with Select Form Element

I seem to be having a strange issue with jQuery and a newly-created AJAX form/function. I'm pretty new to AJAX so please bear with me. Here's the jQuery: ...
2
votes
2answers
88 views

$wp_customize customizer_preview_init not firing inside javascript

I'm trying hook the customizer_preview_init action in order to trigger live preview of the changes I'm making in the customizer. However, my first test is failing. I'm just trying to get an alert to ...
1
vote
1answer
50 views

Enqueue Wordpress jQuery after it's been deregistered by a plugin

I'm looking after a Wordpress install that makes use of a plugin that deregisters jQuery and replaces it with it's own ancient version. I'm aware of why loading your own jQuery is irresponsible and ...
0
votes
0answers
109 views

FitVid not working for iframes on particular theme install

I am using FitVid in my theme and all is well except for a specific site that was migrated from Drupal. FitVid works fine with objects and embeds but not iframes, and only on this particular site. The ...
0
votes
2answers
98 views

wp_enqueue_scripts hook is not being called

I added the following code to my functions.php: if(!function_exists('bi_frontend_scripts')) { function bi_frontend_scripts() { wp_enqueue_script('jquery'); // I originally wanted ...
0
votes
1answer
32 views

I have an old version of jQuery showing up. How do I figure out where it is coming from?

I am fairly new to WP, so I apologize for this very basic question, but I am working on a site that has an older version of jQuery showing up. Here is the jQuery reference I have placed in the ...
0
votes
0answers
102 views

How to add external remote JS source to Gravity Forms?

I would like to add an external javascript source to my Gravity Form. Like this: <script type="text/javascript" ...
0
votes
0answers
12 views

Content not retrieving on .load jQuery function [duplicate]

I`m trying to get posts from a wordpress query_posts external php file via .load jquery function. I`m getting the correct html code, but the wordpress loop part of the code is not loading. My code ...
0
votes
1answer
65 views

Ajax, jQuery and Wordpress

I'm having trouble getting AJAX and jQuery to work with WP, and wondering if someone can point me in the right direction. I have a form, and I want to pass the data from the form to a PHP function, ...
0
votes
1answer
32 views

jQuery does not appear to be enqueued on static homepage

I have been searching why, but I am clueless, I cannot figure out what is happening... jQuery does not appear to be enqueued on static homepage (I am not used to work with static homepages). On ...
0
votes
1answer
68 views

change order of add_action hooks for jquery to be loaded first

a slider plugin puts its javascript “right before the closing body-tag” using an add_action() hook like this: protected static function addAction($action,$eventFunction){ add_action( $action, ...
0
votes
2answers
59 views

WP Plugin Running before jQuery

I'm having problems with jQuery and a plugin, the console error says jQuery is not defined. What I don't understand is it only fails when I load it to the production server, on my local dev ...
0
votes
0answers
88 views

Load CSS files in header of Bones theme?

I'm using the Bones theme, and I'm trying to turn jQuery plugins into WordPress plugins. In the init.php file for the 'Chosen' plugin I'm converting, I've included this code: function chosen(){ ...
-1
votes
3answers
142 views

Getting “ReferenceError: jQuery is not defined” - don't know why!

I've asked this question here before, but never got an answer. In Firebug, in the Console, I get 'ReferenceError: jQuery is not defined'. I have no clue why. Can anyone help? Here is the page I'm ...
0
votes
0answers
189 views

Loop the posts between two dates selected using jquery datepicker

I went through this link where we can restrict the loop to display the posts only between two dates and it works fine. But if I have a Jquery Datepicker with from and to date, then how can I pass ...
0
votes
1answer
251 views

Using Jquery submit with ajax request

When the user clicks the 'submit' button on my form, I would like 'this will be echoed back' to be displayed within an alert. The only JS console error I get: Failed to load resource ...
0
votes
0answers
150 views

Jquery/Ajax+taxonomy filter?

I need to create a filter it doesn't really matter wether it's JS/Jquery or Ajax I just think Jquery/Js would be easiest. Either way this is my situation. I have a few custom taxonomies and custom ...
-1
votes
1answer
70 views

Delete wp_deregister_script('jquery') returns an not shown error

To register my scripts i have this code in my functions.php function enqueue_scripts() { wp_deregister_script('jquery'); wp_register_script('jquery', ...
0
votes
2answers
100 views

When does WordPress automatically enqueue jQuery?

I understood that WordPress ALWAYS enqueues jQuery on all themes, thus it's reduntant to enqueue another jQuery with the same version. However, while developing a theme, for testing purposes I moved ...
0
votes
1answer
61 views

Use options to control jQuery plugin

This may be a dumb question, but I've been teaching myself Wordpress and I've been struggling with this for a while. What I want to do is use a Wordpress control panel page to control a countdown ...
0
votes
1answer
157 views

Blur.js with WordPress - Enqueued, but server not finding file

So as the title suggests, I'm trying to run blur.js on my WordPress theme. I have enqueued the script in functions.php: function load_oves_methods(){ wp_enqueue_script( 'blur', ...
0
votes
1answer
91 views

How to load jQuery in the footer - nothing works for me

I tried all the solutions I found on the internet, including the ones I found here, but nothing works on my theme - jQuery always load in header. I try to use the one from Google, but I would be happy ...
2
votes
2answers
257 views

Creating Multiple wp_localize_script for Shortcode?

I have a shortcode that displays recent WooCommerce products in a carousel, however i would like the end user to be able to use the shortcode multiple times on the same page, currently when this ...
0
votes
0answers
72 views

JQuery is only applying to first post in loop

I have a JQuery script that creates 'arrows' that allow for my textbox to be scrollable, the problem is JQuery is only apply it to the first post (you can see none of the other posts have the arrows). ...
0
votes
0answers
71 views

Can't figure out why a jquery file is not loading!

I have a piece of PHP code that's supposed to load 3 jquery files. For some reason, I can only see 2 of them in the source. I can't figure out why - can anyone help me please? Website: ...
1
vote
0answers
77 views

First Attempt at AJAX and it keeps getting Canceled. Can't Get Results to Show

This is my first attempt at Ajax. I've got it working in the fact that the database gets the record inserted properly, however, once that's done it won't return the response that I've set up. Its as ...
0
votes
0answers
424 views

jQuery infinite scroll and pagination styling in wordpress

I am building a wordpress theme with Masonry (Desandro) and Infinitescroll (Paul Irish). In my index.php for masonry loop I have written:- <?php $recentPosts = new ...
0
votes
0answers
21 views

Comment Nav versus jquery Tabs

I have a page full of comments. These comments have 3 custom_fields assigned to it (using get_comment_meta): New In Progress Solved From my page I call the comments using: wp_list_comments( ...
0
votes
0answers
37 views

Add Media Button Stops Working After Publishing The Post

Add Media Button Stops Working After Publishing The Post. It works fine for the first time when I try to create a post or page. Once I publish the post, it stops working. It is not just Add Media, all ...
0
votes
0answers
192 views

Touch Punch and JQuery Accordion Menu Widget

I have been trying to figure out a way to enable touch events for the JQuery Accordion Menu Widget plugin (http://wordpress.org/support/plugin/jquery-vertical-accordion-menu); i.e. on a mobile device, ...
0
votes
1answer
63 views

How can I implement jQuery plugin correctly with my CPT?

I've tried making an area for client testimonials on my site but I'm having troubles with the jQuery plugin Unslider, which I've implemented. Here is the live site. - The slider is located in the ...
0
votes
0answers
44 views

Fancybox Iframe freezing before loading

So my wordpress fancybox iframe is kinda malfunctioning. When I click the link, the fancybox is triggered and a small rotating image shows and stops for a few seconds, then the iframe shows. Also, ...