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

I can't connect my custom jquery to wp admin

I am trying to figure out how to link a custom jquery to my custom meta box created in wordpress custom post type but I can't find it working. What I want to do is add a line of text when the button ...
0
votes
0answers
116 views

add custom HTML css with js doesn't work

I am using latest Wordpress 3.6. I'd like to add some HTML code to the page using js. I put a <script> $('p.content').addClass('highlight'); </script> in the head are, ...
0
votes
1answer
72 views

How to enqueue scripts in right way in a plugin?

I am developing a wordpress plugin and just came out with a problem with enqueue scripts. I want to enqueue JQUERY UI (.js) and (.css) in my plugin. Is it better to enqueue it from Google CDN or ...
0
votes
0answers
137 views

Passing a location-dependent array via wp_localize_script within a shortcode

I have created a shortcode that is intended to be inserted into custom field of a music custom post type. The shortcode is coverted into an audio playlist using the jplayer jquery plugin (and it's ...
1
vote
1answer
59 views

Dealing with a library that depends on jQuery

I am about to use the pikachoose.com library with wordpress. However, this library references jQuery, and uses the short form (using $). In WordPress documentation, it states that the short form ...
0
votes
1answer
129 views

How do I convert all custom_field php timestamps in the database to js timestamps?

For the past year, we've been storing date-time values into a custom field _date using strtotime(). There are about 100 PHP date-time stamps in our database from over the past year. I would really ...
-1
votes
2answers
342 views

Hook with jquery script is not working in wp-admin [closed]

This is the hook and script Im using, the jquery script itself is working as you can see in this fiddle: function my_custom_admin_footer(){ echo ' <script ...
0
votes
0answers
10 views

JQUERY on my custom WP page wont work [duplicate]

Code below, works properly here http://jsfiddle.net/sushanth009/rE2dW/ but when i put this on my custom wordpress page, Jquery doesnt seem to work. what below page does, is when i select a value in ...
3
votes
1answer
134 views

As a plugin developer, how to deal with theme developer loading jquery from google?

Theme developers like to deregister wordpress jquery and load jquery from google instead. I've been told it is for speed and I agree. This usually is not a problem for me since I always use jQuery ...
-2
votes
1answer
28 views

Animate like Stack exchange frequently asked questions [closed]

http://graphicdesign.stackexchange.com/about As you scroll down the page, images and text slowly fading. Is there a plug-in origin jquery like string that I should be looking for?
0
votes
1answer
629 views

Get post id on click of thumbnail

I am a little lost so I apologize if this question is vague and not organized well. I currently have a grid of thumbnails populated via Wordpress. I retrieve them by getting all the posts in a ...
1
vote
0answers
172 views

Fancybox type popup window that's not an iframe

I'm a bit stuck and need some help to get me going in the right direction. I'm trying to do something similar to the lightbox style popup on this website: http://cargocollective.com/montessori I ...
0
votes
0answers
171 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
200 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
336 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 ...
1
vote
1answer
541 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
333 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
967 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
201 views

slide change on hover with nextgen scrollgallery [closed]

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
136 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
250 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
580 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
203 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
3k 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
71 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
2k 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
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
183 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
211 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
983 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
1k views

gravity forms jQuery.load into modal [closed]

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
3k 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
1k 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
190 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
137 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
531 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
31 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
66 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
629 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
168 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
100 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
217 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
1k 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 ...
1
vote
1answer
162 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
177 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
141 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
134 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
88 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
834 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
52 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 ...