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
6k views

Accept AJAX call with serialized form data

I'm trying to pass a wordpress plugin some form data via ajax and it works just fine, unless the form data is serialized, then the server responds with an error message. I'm stuck with this for days ...
0
votes
0answers
14 views

jquery - output display statement

/** * VARIABLE PRODUCT PRICING TABLE */ function rp_wcdpd_switch_variable_pricing_tables(element_id) { jQuery('.rp_wcdpd_pricing_table_variation').hide(); jQuery(element_id).show(); } if (...
0
votes
0answers
24 views

Is it possible to change wordpress shortcode via javascript

Is it possible to change wordpress shortcode via javascript. Conditional shortcode like shortcode value=true if checkbox is checked else shortcode value=false if checkbox is unchecked
0
votes
0answers
6 views

How to prevent script from updating each image in Custom Image Widget

I found this create question here where you can create a custom image upload widget. Everything works great except as the disclaimer in the answer mentions every time an image is updated (if multiple ...
0
votes
1answer
3k views

Display data on same page as form without refresh

I am not sure if there is something about wordpress, or what I am doing, but I can not get online tutorials to work when implementing in a page template. For example this http://www.computersneaker....
0
votes
0answers
42 views

Submit the form#post form via Javascript [on hold]

I have been working on a workflow for our lesser tech savy writers. They wanted things very spelled out, so I've created the below meta box and have hidden the publish meta box on an edit post page. ...
-3
votes
0answers
15 views

How to change Mobile navigation bar in Genesis? [on hold]

I am using eleven40 pro child theme for Genesis Framework. Here is current navigation bar:- http://www.slondeals.com I want to change the mobile navigation bar (dropdown menu) to (left side menu) ...
0
votes
2answers
477 views

How to make featured image thumbnails on index page load smoother?

I'm using a theme called Hatch Pro, which is a gallery based theme and the index page displays the posts using the featured image. You can see it here. On slower browser environments, the images ...
-1
votes
0answers
32 views

Where to place script in while loop

I'm currently working on a grid template for a WordPress Custom Post Type loop. Basically I'm showing a video cover and when the user is clicking the cover a Modal opens with video and more opens. ...
-1
votes
0answers
23 views

How to use Stellar.Js jquery plugin in wordpress

I have been searching for a proper jQuery plugin that does parallax effect on almost all devices and it seems like stellar.js is considered one of the best. I have been having trouble implementing it ...
0
votes
1answer
16 views

Notepad sticky plugin

I have this following code to give a textarea to a front end user to use it as notes on a page to write things to remember. But this code saves only one sticky note that can be edited whenever the ...
0
votes
1answer
414 views

add bootstrap post slider with tabs

I'm trying to add a carousel with my post. UNder the carousel, some tabs with the post title. On click of the post title, it should change it the slide to display the related post. In " Static" in ...
0
votes
0answers
8 views

How to exclude custom input fields from Wordpress Posts search?

I wrote up a plugin that adds a column to the Posts table in the Wordpress Admin panel. Each row has some input fields that hold some data information. This plugin has a cron that removes the sticky ...
1
vote
1answer
47 views

WP Media uploader loading only once in options page

A weird issue happening with me which I am unable to fix. In my theme options page, I added options to upload images one for logo and another for backgroud image. Here is my HTML <table class="...
0
votes
1answer
2k 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 ...
0
votes
1answer
2k 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, ...
17
votes
3answers
14k views

$ not defined using jQuery in WordPress

I know that jQuery is loaded, because I can switch out the $ for 'jQuery' and everything behaves as expected, but this will be a messy script if I can't fix this This script: jQuery(document).ready(...
0
votes
1answer
25 views

jQuery doesn't work in my php snippet

I have the following snippet to prevent the purchase of products by displaying a text and hiding the "proceed to checkout" button. The text part works great but the jQuery part doesn't i don't know ...
0
votes
1answer
437 views

jQuery does not work in widget backend

I created a widget which should use jQuery for switching between two views and implement the jQuery UI date picker. I was wondering why my jQuery code does not work as I noticed that the date picker ...
2
votes
1answer
449 views

How to enable “shift-click to edit this widget” functionality on a custom widget?

I have created several custom widgets, modeled from the default widgets' code. The widgets all work fine, and I've been using them in production for awhile. I've been working with the new Customizer ...
-4
votes
0answers
24 views

Filter Ajax Dynamic Archives Custom Posts Always not Showing Correct Result

Hy everyones, I'm building filter search using multi select option, when I'm selecting the country and then result of filter search always show all posts Here is my template <div class="row"> ...
0
votes
0answers
77 views

jQuery keyup() on Visual editor

I need to trigger typing in Visual editor and to get current text from it. Is it possible? The next lines are not working: $("visual_editor_selector").keyup(function(){alert("Changed")}); $("...
1
vote
2answers
2k views

Is there a way to enable Cross-Origin Resource Sharing for WordPress' ajaxurl?

WordPress already has a default URL for jQuery-WordPress application calls and it's well known as the ajaxurl. However, there are cases wherein one would need to enable Cross-Origin Resource Sharing (...
-4
votes
1answer
18 views

Using Headroom.js with Bootstrap4 in Wordpress

So I'm trying to work on a site on my localhost here and I cant figure out why this won't work in Wordpress. I'm not sure if it's the way the scripts being declared or what as I've got a perfect ...
0
votes
0answers
306 views

How to get styles from iframe in Customizer

I'm trying to get current styles from a live preview when Customizer is loaded to set them in my controls. How can I do that? I was trying in this way: $('#customize-preview iframe').contents().find(...
-1
votes
2answers
1k views

AJAX values converted to PHP Variables?

I just started playing with Wordpress and I have a question about the AJAX side of things. I think that I understand how the AJAX front-end to server side processing, back to font-end works. But, I ...
0
votes
1answer
3k views

Parse wordpress blog data using json api and ajax

I have seen lots of responses to how to extract data from wordpress blog posts using the json api plugin. Many uses $.getJSON, $.ajax, .responseData.feed.entries, success function() etc. What is the ...
-3
votes
0answers
19 views

Else if statement help

I'm struggling to figure out why my else statement is not working. What's happening is, everything in my else statement is happening during the if condition, and I don't seem to understand why. Any ...
0
votes
1answer
41 views

How can I add the Post ID to Class Name in Jquery?

In the custom Wordpress theme archive page, I will have Sharing icons for all the posts. Below is the HTML for showing Sharing icon: <span id="post-share-<?php the_ID(); ?>" class="post-...
-3
votes
0answers
21 views

Gravity Forms Dynamic Population Pre_Submission Hook

I'm not very savvy with Jquery. Can you help me embed it on a single wordpress page so that it can act on my Gravity Form? I have a gravity form with an interactive google map in it. There are two ...
0
votes
1answer
16 views

Call full image url instead of stylsheet directory url in JS for Infinite Scroll Function

Can`t figure out how to call the gif image with a full url (for example: http:// urltoimage .com/test.gif) instead of the stylsheet directory url (obj_test.stylesheet_directory_uri + '/img/ajax-loader....
-1
votes
1answer
29 views

Combo box populating a DIV using ajax/jquery

What is a good technique (in 2016) to allow dynamic population of a Wordpress page? Basically I have to dynamically load a DIV in the webpage depending on selection of a combo box. BTW, are there ...
0
votes
0answers
10 views

Trouble displaying image, using Backstretch.js, Even tho the image comes up in the source code

Hey guys so I'm having trouble displaying an image using backstretch.js even tho the image comes up in the source code. I need help trouble shooting the problem, I went into the Backstretch.js repo ...
-2
votes
1answer
88 views

How do I add a button to run some code on a page when the button is clicked

I have a this conditional code below and I'd like to know how to add a button that when clicked will 'run' the code indicated. I have no experience with ajax/jquery but I assume it is what is needed? ...
0
votes
1answer
496 views

AJAX Success Function using JS substr() fails in WP 4.1 vs 4.0

For years I've set up php ajax calls and responses in my plugins like the following, with js error detection conditions as needed like... if( "<e>" == msg.substr(0, 3) ) { do_something(); } ...
0
votes
3answers
46 views

Jquery script with comments ID's

My html looks like this (simplified) $args = array(...); $comments_query = new WP_Comment_Query; $comments = $comments_query->query( $args ); foreach ($comments as $comment) { <...
-1
votes
0answers
32 views

Enable Next button only when radio button clicked [closed]

I'm building a quiz which consists of 10 questions which are custom taxonomies, such as size, coat etc. The users can answer those questions and thereby filter through the taxonomies and are then ...
2
votes
0answers
85 views

Color Picker (iris) in widget - refresh when edited in Customizer

I have added the WordPress Core color picker (iris) to a widget I developed, but when I edit the color, there is no change triggered. As a result, the iframe (live preview) for the Customizer does not ...
-1
votes
0answers
25 views

WooCommerce Shop Page Display Product Div as a Weird Loop

function neato() { global $product; if ( $product->get_permalink() ) { echo '<script src="https://code.jquery.com/jquery-1.10.2.js"></script><div class="new-projects"></div> ...
1
vote
3answers
61 views

How to use wp_localize_script in a WordPress page other than functions.php?

I have a contact form in a WordPress page like this: $( '#contact_form' ).bootstrapValidator({ fields: { // ... }, submitHandler: function( formInstance ) { $.post( "../...
0
votes
2answers
20 views

Adding scripts before plugins scripts

I have a site which uses Google's API's for jquery and a fallback for jquery. The problem is that I can't get the fallback to happen immediately after the jquery api attempt. What happens is that the ...
0
votes
2answers
701 views

Custom search: Search posts but display parent page in results

I'm using Wordpress 3.5.1 with a modified twentytwelve theme. My main site structure is based on the Smooth Slider plugin (jQuery Cycle). I have Pages that contain only a shortcode (for example, [...
1
vote
2answers
1k views

wordpress site | All-in-one-cufon IE Issue

I have a site where i'm using the All-In-One Cufon (Wordpress Plugin), but having some issues getting it to render properly in IE. The website: [removed] The Problem: It works fine so far in Firefox ...
1
vote
2answers
902 views

Form isn't inserting data into database with ajax plugin

I've been working at this for weeks without success. I've figured out problem after problem with the code, but none of the corrections seem to fix my core problem. The form doesn't insert anything ...
0
votes
0answers
17 views

Setting up jQuery noConflict to be used only for plugin?

I'm a little bit lost, I'm trying to make a plugin only use this specific version of jQuery so it doesn't conflict with other versions that are on the site. This is what I have tried and I thought ...
0
votes
1answer
36 views

Redirect wp_dropdown_pages() to an AJax request?

I want to get the result of wp_dropdown_pages() to fire an ajax request to show an image instead of redirecting the user to the page url. In other words, my pages are all for car models. I want to ...
0
votes
1answer
2k views

Using AJAX to run SQL statement and populate dropdown

I am trying to create a search where the user selects two different bits of data from the database and it then prints some results that meet requirements. I know I need to use AJAX, or something ...
0
votes
1answer
419 views

Masonry Append WordPress posts with singleMode

I'm using Masonry on a Wordpress site, to display posts from a custom post type (training_videos). As all the columns are the same width im using the singleMode = true option. The site is a ...
-1
votes
0answers
22 views

Inserting jQuery into a custom page

I have made a custom front page, code below. <?php /* Template Name: Front Page Custom */ ?> <?php get_header(); ?> <body class="custom-front-page"> <div id="cfp-...
1
vote
2answers
53 views

Returning a value from a PHP page

I have created a WordPress page that has this simple PHP code: <?php $result = array( 'State' => 'Done', 'ID' => 1 ); wp_send_json( $result ); ?> When ...