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
0answers
157 views

jQuery Ajax / Modal admin event not firing since 3.6. Seems to not recognize “a” tag

This came up immediately after upgrading to wordpress 3.6. Upon clicking the modal "anchor" tag, an ajax event fires to refresh the content in the box. It was working before, then ceased ...
0
votes
1answer
171 views

Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script

Short version: I'm able to get a PHP variable into a JS file using wp_localize_script. On JS file i'm able to echo the variable using console.log, but I cannot get it echo into the jQuery plugin's ...
0
votes
1answer
246 views

In jquery use php variable to execute an enqueued jquery file

I am loading some jquery on a specific Wordpress admin page, the jquery loads and works fine but I need have this jquery only trigger if a php variable exists. In php I would just write a function ...
0
votes
1answer
467 views

How to add fixed position in menu class for Twenty Twelve theme?

I have already looked at many jquery examples on how to make the menu sticky. I have applied these tutorials on clean html pages and they have worked perfectly. However, when I try to apply it on the ...
0
votes
1answer
251 views

Javascript/jquery loads super slow (around 6 seconds) which affects only homepage

I got a custom wordpress theme from a developer but he isn't responding to me anymore. Basically my homepage takes ages to load which causes all the elements on the homepage not function until the ...
0
votes
1answer
820 views

Getting an alphabetic post list with two letters onclick on letter

I have a website in Wordpress and a page with a list with letters like this: A B C D E F G H I ... This shows me all posts with the letter A for instance. That's nice, but I want it to make it ...
0
votes
1answer
165 views

slide change on hover with nextgen scrollgallery

My jquery skill is pretty bad, so I can not seem to achieve this. I have a nextgen gallery album that has a scroll gallery showing the images in a slideshow. I want to change the slides on hover ...
-2
votes
1answer
112 views

Use Wordpress Built In Jquery

I see that on every page Wordpress is loading in jquery, how do I go about using that jquery as it keeps telling me that it doesn't recognize $ or $noConflict(); - I'm trying to add some jquery under ...
0
votes
0answers
188 views

Auto Select Child categories on Multiple Dropdown - Jquery

I am using the wp_dropdown_categories to generate the form and select option, with multiple select jquery plugin. What I want is that, when the user selects the Parent category or (level-1) then the ...
0
votes
2answers
361 views

Hide input field when second input field is in focus

I'm trying to create a sidebar where there are two inputs side by side: Search|Subscribe. When the user clicks on one input (Search, for example), I want the second (Subscribe) to disappear so the ...
0
votes
1answer
192 views

How can i display a jquery slide on front page

Hy, I integrate a jquery slide on front page, the problem apear when i install Next Gen Galley on the website. The Slide Stop Working, there is a conflict i think. I have 2 header index-header.php - ...
-1
votes
1answer
2k views

AJAX - Returning Two JSON Objects with One PHP Function

How would I go about returning two JSON objects with one AJAX call and PHP function? Any help is much appreciated! Here's the PHP function: function get_ldap_attr() { header("Content-type: ...
0
votes
2answers
65 views

Jquery is not working in wordpress php file

I am trying to use jQuery to scroll the div content vertically. I have used the following line of code in function.php add_action( 'wp_enquque_scripts', 'my_script_enqueue' ); function ...
0
votes
2answers
1k views

Stumped - Ajax Response Returns 0

I can't seem to figure it out. No matter what I do, the ajax call keeps giving a 0 response. I've tested my PHP funtion and it works fine but whenever I call it through ajax I receive nothing (only a ...
0
votes
0answers
661 views

Add jQuery Validation in Gravity Forms Form

So I have some jQuery functions that adjust my column layout on window load and window resize. They are inside a file called bp-columns.js that looks like this: jQuery(window).load(function () { ...
0
votes
1answer
1k views

How do I implement jPanelMenu?

I have serious problems trying to implement jPanelMenu to the theme I'm building. The theme is nearly finished, I'm just trying to figure out this menu and I can finally start using it. Anyways, if ...
2
votes
1answer
151 views

How to load some jquery code to make validation in the theme customizer?

i am tring to load some jquery code to make validation in the theme customizer. i have created 10 checkboxes to show some info. but i want to limited the user to choose only 5 checkboxes. so i have ...
0
votes
2answers
159 views

Showing Meta Box via Jquery Checkbox

Ive been fooling around with both Jquery and PHP and Im trying to setup a website for a sports team. I've created a custom post type called "Matches" and in there I've created two Custom Meta Boxes. ...
0
votes
0answers
713 views

Adding jQuery timepicker to contact form

I currently have a contact form on my WordPress site. I have date and time inputs, for the date input I'm currently using the "jquery-ui-datepicker" and have it working in the following setup. In my ...
0
votes
1answer
704 views

gravity forms jQuery.load into modal

I have a gravity forms contact form which resides on a page, but what I want is a site wide link, that will open up that form and display it in a modal, on the fly. One way to go about this would be ...
0
votes
2answers
2k views

How to force jQuery to load as a first script in header in frontend?

How to force jquery to load as a first script in header? Right now it's the last ;( like: <link type="text/css" rel="stylesheet" ...
0
votes
1answer
991 views

“switchEditors is not defined” with wp_editor() in jQuery UI tabs

Making a WordPress plugin, using WordPress 3.5.2 I'm using wp_editor() on the front end, inside jquery UI tabs [ajax loading tabs + 2 editors on the same panel], and I'm getting the following error, ...
0
votes
1answer
153 views

static page with buton that opens collect email form

I am PHP programmer, but I am not familiar with WP yet (I do understand some basic things). I have static page and I have to place a DOWNLOAD button on this page. Click on this button will allow user ...
0
votes
1answer
115 views

sanitizing/escaping plugin options

I have a plugin with a few text boxes that save the data in a serialized manner, the array is localized and printed in website front end to display custom messages. However, I just noticed that you ...
0
votes
2answers
302 views

How to add a “ waiting” icon for an ajax in WP frontend?

This is my search js code for processing search : jQuery(document).ready(function($){ $('#searchsubmit').click(function(e){ e.preventDefault(); var searchval = $('#s').val(); ...
0
votes
0answers
26 views

I am trying to call external database recieving error

My case is different from the case defined here .. I am calling an external databse in my functional.php file by this method function newdata() { $newdb = new ...
0
votes
2answers
64 views

Javascript not loading on certain page

My Javascript doesn't seem to get called on this page called news, this uses the default post custom type in wordpress. Every other page that uses's this javascript is a custom post type I've ...
0
votes
1answer
476 views

wp_localize_script, variable is not defined in jquery

I try to load a post with Ajax. functions.php: function my_action_callback() { wp_localize_script('jscustom', 'ajax_custom', array( 'ajaxurl' => admin_url('admin-ajax.php') ...
0
votes
1answer
145 views

Localizing methods for jQuery append prepend wrap parent

So I am serializing some options in WordPress and then localizing them to be used in my jQuery script, however what I am trying to do next isn't working. jQuery('.advert')+ lu_ban_object.method ...
0
votes
2answers
89 views

JS completely stopped loading but Files are found

Basically I've enqueued all of the files I need and can see there been picked up in the browser but for some reason none of them seem to load or function correctly and I get no errors in the console. ...
0
votes
1answer
162 views

enqueue script if page is not equal to

I'm registering some js scripts in my function.php, I have 2 versions of one js file, one FOR the homepage, and one for every other page. I've managed to get this to work to register the homepage ...
-1
votes
1answer
821 views

How to fetch serialized data from wordpress options

I have the following serialized data in a wp option a:2:{s:5:"Title";s:11:"your title";s:7:"Message";s:20:"Hola testing testing";} I would like to return it to be used in a form, and show it also in ...
0
votes
2answers
211 views

WP e-Commerce plugin is breaking drop down menus functionality

After installing WP e-Commerce plugin primary theme menu functionality got broken. Here is theme with installed WP e-Commerce plugin: http://www.interactstaging.net/clients/tozzi/ and here clean theme ...
1
vote
1answer
156 views

Best approach to fetch data from wp options to js file or php file

I am creating my first ever plugin, as I am not a programmer, I have been following tutorials and reading the codex, etc. My plugin consist in showing a notice to users when certain conditions are ...
0
votes
0answers
150 views

jquery masonry effect on archives page, group by month

I have this archive page (using the Thesis theme, version 1.8.5): http://testblog.squeesome.com/columns/ I'm trying to make the structure look like the Tumblr archives. I got so far as applying the ...
1
vote
2answers
131 views

ajax, right way to do it and make it works?

I'm new to wordpress but have knowledge in php and javascript. I read a lot of blogs about ajax call in wordpress. I also read some posts on this forum. However, I still have some difficulties making ...
-2
votes
2answers
123 views

How do I add Javascript and CSS files into WordPress?

I have the following html code: <script src="js/jquery.vmap.js"></script> <script src="js/jquery.vmap.world.js"></script> <script ...
1
vote
1answer
86 views

Can't load a class into WordPress post editor's content field

Following to THIS WordPress QUESTION we tried some tweaks and got some nice solutions, hope we can public them after some good active codes-snippets. According to our procedures, we correctly ...
0
votes
3answers
673 views

JQuery undefined and Stylesheet loads in bottom along with js files

I'm developing a theme for wordpress and I'm using this function to enqueue scripts and styles function Joy_scripts() { wp_enqueue_style( 'Joy-style'); wp_enqueue_script( 'Joy-scripts', ...
0
votes
1answer
50 views

Rollover Image jQuery help

I basically want to have a small thumbnail of an image, and when the user puts the mouse over the image I want a larger version to pop-up. I've been doing some Google and I found this tutorial. I ...
0
votes
0answers
145 views

Gravity Forms Signature Conflict

There appears to be a conflict between a Wordpress theme that I am using and Gravity Forms and/or their Signature add-on. When the site is viewed on a desktop and the browser made to the size of a ...
0
votes
0answers
175 views

How to load jquery tag-it plugin into admin?

I'm trying to load tag-it jquery plugin into the wordpress back-end for the category edit page, but for some reason I can't. The following are snippets of my code: function ...
2
votes
1answer
218 views

Passing boolean values with wp_localize_script

I am using wp_localize_script to pass a couple of values from my theme options to a javascript file. First I got the values from my theme options: $options = get_option('theme'); $flex_auto = ...
0
votes
2answers
1k views

Check if email address exists front end with AJAX in a plugin

I am pulling my hair out trying to figure this out. I have followed the wordpress codex here for AJAX: http://codex.wordpress.org/AJAX_in_Plugins All I keep returning is 0, I never get a 1. Any idea ...
1
vote
0answers
304 views

Getting jquery to work with custom theme

I am trying to get some jquery plugins to work with my custom theme. Up until now I was doing this: function my_scripts_method() { wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', ...
3
votes
4answers
2k views

Loading style.css and Jquery using HTTPS

We have several environments and we have just started using wordpress (Dev, QA, Pre-prod, prod etc...). We don't have https enabled in the lower environments and everything is working smoothly. In our ...
0
votes
1answer
45 views

Slider's missing navigation

I've got BuddyPress and Easy FancyBox installed, I've also got carouFredSel slider (not the WordPress plugin). When those two plugins are enabled, slider stops working properly (navigation bullets are ...
0
votes
2answers
114 views

jquery does't work

I have been having this issue with my site where some of the scripts that I am putting into the site are not working and others are. The site is fully functional on one setup and fails on another even ...
0
votes
0answers
301 views

wp_signon not working fine and 302 moved temporarily?

I am using wp_signon function. This is my ajax code. jQuery.ajax({ type: 'POST', url : '<?php echo bloginfo('template_url');?>/ajax/loggedin.php', ...
0
votes
2answers
3k views

How to add jQuery script to an individual page?

I have this code which I want to add into a specific page of mine. I don't want to create a file for it and then include etc (though do tell if that would be the only way). Also I don't want it to be ...