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
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
304 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 ...
1
vote
2answers
211 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
289 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
661 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
172 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
240 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
175 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
125 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
174 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
74 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
73 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
206 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
1answer
425 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
379 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 ...
4
votes
3answers
278 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
321 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 ...
0
votes
1answer
124 views

Passing a varible from jQuery to PHP

I have a a bunch of li's that are a blog but i want to show them enlarged in a colorbox. Therefore I need to know which li I clicked so I can get that ID and use that in my query to get all the date ...
1
vote
4answers
222 views

Add a class to posts in increments of 2

Is it possible to add specific classes to posts/pages in a query in increments of 2? For example Post 1 Post 2 Post 3 (add custom class) Post 4 (add custom class) Post 5 Post 6 Post 7 (add custom ...
0
votes
1answer
238 views

Form Security: nonce vs. jQuery

I am trying to create a methodology for submitting forms on my WordPress site. In the past, I have used WordPress nonces in order to secure form submission, but I like the idea of using jQuery to ...
1
vote
2answers
2k views

adding the full image path to a wordpress javascript file

I am currently building a WordPress theme where I am using jQuery to append and prepend some ornate images to a h4 tag with a class of beechheader in the page template markup. Before turning the ...
0
votes
1answer
110 views

Replacing WordPress Icons (menu,icons32, etc)?

I want to replace wordpress admin sprites. I recreated the images and looked answrs for icon replacement using jquery and simply with CSS BUT what about ones link icons32-2x.png where I can't find the ...
0
votes
1answer
170 views

Readonly input text appears unlocked while the page is loading

I need help with a code for locking editing an input of type text in the profile page of Wordpress. I added the following code: (function(){ $("#email").attr("readonly","readonly"); }); But ...
0
votes
1answer
25 views

Covert Wordpress Blogname into JQuery

Here is the blogname in php <?php $blog_title = get_bloginfo('name'); ?> I want to convert it to javascript. The file I want the blog name is in a .js file so I cant create the variable with ...
0
votes
1answer
113 views

POST from jQuery to PHP

I have a form that passes field values to jQuery, which validates the fields and creates the variables being sent in data: {} in the snippet below. $.ajax({ type: "POST", url: "<?php ...
1
vote
1answer
420 views

jQuery Validate wp_editor

I have a form, and in the form, I use <?php wp_editor('', 'user_submitted_progress', $settings = array('textarea_name' => 'user_submitted_progress')); ?> to generate a TinyMCE, rather than ...
0
votes
0answers
232 views

Loop not appending through infinite-scroll ajax call

I'm having trouble debugging why the InfiniteScroll jQeury plugin isn't loading more of my .boxy class items. So far I've placed the div containing the selectors in different levels of heirarchy, but ...
0
votes
0answers
173 views

Creating a costing calculator plugin. How can the user create the calculations without coding?

I am relatively new to php & wordpress development. I am trying to create a plugin that allows the user to create an unlimited number of costing calculators. Users will be able to add fields ...
1
vote
0answers
67 views

videopress videos are not displayed when loading the content with ajax in a lightbox

I'm using videopress and I'm adding the videos into posts with the videopress shortcode, and when I visit the post I can see the videos and play them, but the problem is when loading the post with ...
0
votes
1answer
99 views

How to change links in the 3 main categories, on widget category, to a javascript function call

I'd like to know.. How could I change my 3 main categories links, so they call a javascript function? I'm using Snapshot Theme from WooThemes. Here's the current state of the website: ...
2
votes
1answer
5k views

Lightbox popup on WooCommerce add_to_cart action

I would like to create a modal 'pop-up' window in WooCommerce to appear when the "Add to cart" button has been clicked. This has to occur after the WC actions that actually add the product to the cart ...
0
votes
2answers
227 views

Pull GetOption() variable into jQuery dynamically created html

I have a page with the following markup in the site theme footer: <div id="modalpopup"><div id="inside"></div></div> I have a variable in the WP db I can retrieve via ...
1
vote
1answer
128 views

Blip Slideshow plug in Mootools/jQuery conflict

This particular site uses the Blip Slideshow plug in (because it's fed by a Picasa web rss feed) and also a jQuery powered slider. The plug in inserts the Mootools script links ahead of the jQuery ...
1
vote
2answers
531 views

Make parent category not selectable when it has child categories

I'm trying to find a way of disabling the selection of the parent category within Wordpress 3.5.1 (post editor screen) only when that parent category contains child categories. My structure: ...
0
votes
1answer
817 views

Infinite scroll page number

On this guys blog he's using infinite scroll and it's appending the page number to the url so when you click on a story and go back, you start off where you were. I'm using infinite scrolling on a ...
0
votes
2answers
188 views

Enque Javascript in Footer?

I currently enque jQuery like so - how do I move this to the footer instead? // Enque: jQuery if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11); function my_jquery_enqueue() ...
0
votes
1answer
86 views

How to disable controls in theme customizer?

Edit: I have rewritten the question in hopes I will get a reply from someone who knows the theme customizer. I am trying to figure out how to disable setting controls in the Wordpress theme ...
0
votes
1answer
349 views

WooCommerce - PrettyPhoto appending URL with #prettyPhoto

For some reason the PrettyPhoto script that WooCommerce is now using is adding #prettyPhoto to the end of URL's once it's been opened in that page. See here for an example Also, when you close the ...
1
vote
0answers
92 views

Bypass nonce value while trashing a post

I want to move a post in trash but the condition is that simultaneously I need to delete some more posts. Sample Code: jQuery(function($) { $('#delete-action a').unbind(); $('#delete-action ...
0
votes
0answers
64 views

get_option include <br /> in my adsense

As title said I saved in wp-options -> option_value a adsense code but when I try to display to website in the code I get some "<script type=\"text/javascript\"><!--<br ...
5
votes
2answers
2k views

How Do I Use jQuery UI In My Plugin

It's a sad day in the world when I Google something and it returns nothing. I am trying to use the default datepicker (or ANY datepicker at this point) and am unable to because of my lack of ...
0
votes
1answer
3k views

Ajax Validation for reCaptcha

Background I have a registration form that validates with AJAX using jQuery Validation Engine. The form was created using Theme My Login and contains reCaptcha which I implemented using WP-reCAPTCHA. ...
0
votes
2answers
418 views

jQuery accordion plugin won't work once used in WP

I'm tryin to use this accordion script in my WP: http://www.armagost.com/zaccordion/ Problem is that on a standalone html/php file it works well but once pasted in my header.php file there's no way ...
2
votes
1answer
227 views

Get image URL from media library in input

On wp-admin/post.php?post=447&action=edit for example I have a link and an input. The link appears as follows: <a href="#" class="button insert-media add_media" data-editor="tj_image_url" ...
0
votes
0answers
93 views

Creating an events calendar where users can enter events via a custom post type

I'm building a plugin that enables users to add events via a custom post type. The custom post type with have a meta box with two fields: one for the event date and one for the event time. I know how ...
0
votes
1answer
45 views

Screen Options JavaScript Code

I want to know, what script drives the "screen options" animation toggle in WordPress. I'm referring to the options menu that slides out when the admin clicks the "Screen Options" link near the ...