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

2
votes
1answer
164 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
169 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
850 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
897 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
177 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
116 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
390 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
30 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
545 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
161 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
96 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
191 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
158 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
161 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
133 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
129 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
87 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
755 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 ...
0
votes
0answers
184 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
247 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
371 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
47 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
124 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
339 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
4k 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 ...
1
vote
2answers
227 views

Ajax Dynamic Archives not showing correct results

Im baffled on why this is not showing the correct results, when selecting the month alone and say 100 posts are on the site, only 3 show up, then if you select the category and month the proper show ...
0
votes
0answers
307 views

jQuery autcomplete not working

I am trying to implement jQuery autocomplete but it is not working. When loading it the following way it does work: wp_enqueue_script('jquery-ui-autocomplete', '',array('jquery-ui-widget', ...
0
votes
0answers
52 views

Highlight posts currently being edited on multiple editor site?

I have a custom page that uses the Cleverness To-Do List plugin to display multiple posts on a page. My site has multiple editors, and if a post is currently being edited on the custom page (not the ...
0
votes
2answers
717 views

Using Bootstrap Switch with WordPress

I cannot figure out how to get this Bootstrap Switch extension to work with my WordPress installation. When I download the example from github and run it on my local machine, the controls work ...
0
votes
4answers
175 views

Cannot get Jquery to work with wordpress

I can't figure out why Jquery isn't working on my Wordpress site. Am I setting it up right? Any help or suggestions is appreciated! Thanks. Here is what I have in my function.php function ...
0
votes
1answer
258 views

Update Wordpress Custom Field with AJAX on cached page

I'm new to ajax am trying to create a simple hit counter that updates a custom field in Wordpress after the page loads. The page is cached, so any attempts to use PHP alone will not work. I'd like ...
0
votes
0answers
176 views

Save Changes function after table is sorted using jquery

I have a simple table, and the jquery works great for sorting. The fields drags an drops perfectly, and updates then and their. Also of course the data in the fields are saved in a array. The data in ...
0
votes
1answer
135 views

Set start page depending on screen width [closed]

I'm building a responsive theme and would like to have different start pages depending on screen width. In this case, the start page is set in WP admin and contains an image map built on a cunstom ...
0
votes
1answer
224 views

Comment form vaildation

I've build a custom comments form which hooks onto the default comment_form() in twenty twelve child theme. Here is my code functions.php function pietergoosen_custom_comment_fields($fields) { ...
0
votes
1answer
51 views

Separate jQuery for Individual Comments?

So far I have designed this function to display rating stars on the front end below every comment: add_filter( 'comment_text', 'additional_fields' ); function additional_fields ($below) { ...
1
vote
1answer
82 views

Cancel jQuery 'noConflict' - is it really unsafe?

I use some external plugins (not wordpress plugins), that use '$', and it's very convenient for me to cancel noConflict mode, by adding this line $=jQuery But I guess they invented noConflict mode not ...
0
votes
0answers
74 views

jQuery does not enqueue for my purpose… (before an inline script in the footer)

Following How to add a javascript snippet to the footer that requires jQuery I am trying to load jQuery before my script does stuff but it's not working. This is it working when I include jQuery ...
0
votes
0answers
236 views

Pull & display new comments without refreshing the page

I've just managed to implement ajax on comment submission and now members don't have to leave the page when they comment but still have to go one extra mile when they want to see new comments. I've ...
3
votes
1answer
2k views

Ajax Load More Posts in Category Page

I am developing a theme where I need to load more posts with ajax. Currently, when I click load more on the category pages, all the posts are loading. The category.php looks like this : ` ...
0
votes
2answers
503 views

wp_mail very slow

I have a question about the wp_mail() function. Right now I'm having the following button to send e-mail with: echo '<input type="submit" name="send_button" value="verzenden" id="'.$post_id.'" ...
0
votes
1answer
417 views

Assigning tags to a post from front end using tag-it jquery UI plugin

Tag-it is a jquery UI plugin that allows assigning tags, exactly like tags system in stackoverflow. https://github.com/aehlke/tag-it/blob/master/README.markdown My goal is to allow members of my ...
5
votes
3answers
307 views

Best Practices for Seperating jQuery from HTML/PHP

I am creating several jQuery scripts to help validate forms before they are submitted. I have read that it is best to always separate jQuery scripts into a separate file so that you can load the ...
0
votes
1answer
359 views

Appending anchor tag to next post

I am making a one page wordpress site. There is a section of the website displaying content via category posts. There is only one post displaying at a time and I am using the following default code to ...