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
51 views

Invoking Jquery in a Plugin

I am using the following code in my plugin : <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <?php echo "<script ...
0
votes
1answer
483 views

Bootstrap with Flexslider jQuery Issue

I'm building a Wordpress theme using Twitter Bootstrap. I have registered and enqueued the bootstrap .js file (including others) and everything works fine. This is my code: wp_register_script( ...
0
votes
1answer
65 views

Possible jquery / library conflict in plugin usage

I am using the free version of the plugin: WP Feedback & Survey Manager but for some reasons the tab style is not rendered, and I guess it's for a javascript/jquery problem, eventhough I don't ...
0
votes
0answers
132 views

Ajax contact form

I have a custom contact form that I am trying to process via Ajax. I am a bit newbie in Ajax and more using it on WordPress. I have built it but it doesn`t send the email and retrieve "0". Php ...
-2
votes
1answer
365 views

Load loop images on click / defer image loading until click or other event

I have a loop of some images (custom post type) that are in a tiny slideshow. There are about 30 of them. When the user clicks the tiny slideshow, it pulls up a fancy-box gallery that is populated by ...
0
votes
1answer
27 views

Can user meta be shown or hidden depending on user logged in status?

Can is_user_logged_in be combined with jquery somehow to add/remove fields wrapped in a certain class? More specifically: I want to wrap the users' phone and email in class "private". Then if the ...
3
votes
1answer
271 views

Media manager multiple selection

I was creating a plugin, and its part should by adding files to custom posts. I managed script to work, but after few changes, to better look and function, it allows only one file to be added, than no ...
1
vote
1answer
1k 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
155 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
133 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
89 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> ...
5
votes
2answers
657 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
60 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
140 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
42 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
133 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
281 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
781 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
273 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
134 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
41 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
65 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
133 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
42 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
320 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
128 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
63 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
172 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
376 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
35 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
1answer
264 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
91 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
43 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
112 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
74 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
200 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
523 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
281 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
687 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
158 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
94 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
188 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
77 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
238 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', ...
1
vote
1answer
224 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
483 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
119 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
90 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
154 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 ...