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
203 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
269 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
444 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
3k 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
360 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
256 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
342 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
784 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
179 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
279 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
182 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
141 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
269 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
53 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
77 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
265 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
595 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
471 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
317 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
380 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
132 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
263 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
281 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
114 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
217 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
27 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
126 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
504 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
291 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
185 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
72 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
102 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
7k 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
313 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
140 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
683 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
983 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
189 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
96 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
430 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
110 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
74 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 ...