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

is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript

Is there a predefined JavaScript function that can be use to check whether the site is being previewed in the Customizer which returns true if it is or false if it's not, just like what ...
0
votes
1answer
9 views

How to dispaly custom fields value in frontend [on hold]

My code $meta = get_post_meta( get_the_ID() ); // Get custom meta value $post_offer = $meta['custom_offer'][0]; echo 'Offer: '.$post_offer;
0
votes
0answers
7 views

wp_list_table, jquery get the value of the checkbox

Hello i'm trying to make inline edit for my wp_list_table. but i've hit a brick wall. the thing is that each elemement/td is made up off 2 class column example: <td class="name column-name" ...
0
votes
3answers
41 views

jQuery no conflict

I just want to once and for all get some clarity on jQuery within Wordpress as I can never remember from one project to the next how things should be done. The particular example I am talking about ...
0
votes
1answer
18 views

Trouble with Wordpress Ajax Login System - 302

I'm trying to create a simple Ajax Login system with Wordpress. Unfortunately, every time the "wp_signon" function is fired, my system failed and the only information I have is this one : POST ...
0
votes
0answers
18 views

Youtube Iframe Api play one video at a time

Below is my code and only video 1 can stop video 2 but video 2 can not stop video 1. I want one video to play at one time. What could be the reason and i am using shortcode and below is my code in ...
-1
votes
0answers
21 views

WordPress Gravity Forms - Storing Gravity Forms data in JSON format in MySQL DB

So I've worked this out a little bit and now I've hit a bump in the road. I am working on a record keeping site for registering people and making records of personal data. Each new record or update ...
3
votes
1answer
41 views

Modify Custom Field in Media Library using JavaScript

I've added a custom field into my media attachments: function set_image_data( $form_fields, $post ) { $form_fields['text_color'] = array( 'label' => 'Text Color', 'input' ...
0
votes
1answer
14 views

Making jQuery .change() event persistent after widget save

I'm creating a custom widget that uses a select element with a bunch of options and a simple jQuery function to trigger the visibility for some <div>s below it based on the selection, through a ...
0
votes
1answer
19 views

JQuery UI not loading without explicit loading of jQuery

I know there are a lot of questions regarding this issue, but I can't figure out mine here. I'm trying to load the whole jQuery UI ( Actually I need only the Slider ) and I successed. This is my ...
0
votes
1answer
19 views

wp_list_table trying to make inline edit

I'm very new to javascript and jQuery however I've jumped into trying to make inline edit for my wp_list_table but find it difficult to catch the class for some reason. the classes for the column I'm ...
-2
votes
1answer
16 views

Show/Hide Mailpoet form [closed]

I'm using the mailpoet plugin for wordpress with a shortcode. The shortcode is: [wysija_form id="1"] I'd like to have a function that when I click a button, the button disappears and the form is ...
0
votes
1answer
32 views

Multiple Media uploader output to input

I'm trying to select multiple images then insert the IDs (comma-seperated) into a text field. Here's my code, but it picks the first image ID only: jQuery(document).ready(function($){ var ...
0
votes
1answer
31 views

Jquery function working in Dev Console but not otherwise [duplicate]

Can someone help me utilize native wordpress jquery to run my function? The only working test i have done is to load an external jquery resouce via the chrome dev console and then add my function to ...
-3
votes
0answers
22 views

Revolution slider fade away and scroll to next section [closed]

Is there a way to let a slider fade away then automatically scroll to the next section and remove the first slider from the page? This is what I got so far jQuery(document).ready(function() { ...
0
votes
0answers
9 views

A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control

Are you familiar with the Customizer core $wp_customize->get_setting( 'header_textcolor' )? It will become available once you add_theme_support( 'custom-header' ). It have two controls, one is a ...
0
votes
1answer
26 views

Creating a Tabbed Widget

I have setup my widget to retrieve data from custom post types. I am using WP Query to show the data, but it still not showing. I have also setup the file in a gist for easier lookup ...
0
votes
1answer
44 views

How to return multiple arguments from AJAX callback function

First of all, please don't mark the question as duplicate as I didn't ask how to send arguments with ajax request. I want to receive some extra arguments on ajax success. My callback function will ...
0
votes
0answers
18 views

Portfolio filtering menus script in Wordpress and JQuery

This is the page: scharc.com/en/projects Let's say I select the Department, then the Field of Expertise and finally a Location, for example. Right now deselecting the Location doesn't free any ...
0
votes
0answers
16 views

How to share a single image with lightbox 2 image gallery

I am using on my website the last version of addtoany and the last version of wordpress. I implemented it on my site, and it works fine without any problem Here i share one of my image gallery. As you ...
0
votes
1answer
38 views

Target WooCommerce submit button

I am trying to hook into the WooCommerce submit button and applying some custom jQuery scripts before submitting the order. However,I can't seem to target the submit button on the checkout page. I ...
-2
votes
0answers
22 views

Turn wordpress portfolio plugin into carousel portfolio plugin [closed]

0 down vote favorite Images not worked in carousel slider in portfolio except 'All' portfolio menu. I did a task by adding functionality of carousel slider in my WordPress portfolio plugin.I have ...
0
votes
0answers
24 views

How to get attachment's custom url using custom media uploader

I'm wondering how to retrieve attachments's 'Link To' field when an image is inserted into a custom field using custom media uploader. And here's the code used: var frame = wp.media({ ...
0
votes
0answers
14 views

login_enqueue_scripts not working with javascript

I have this little modification to the login form: // Load Jquery before login styling add_action('login_enqueue_scripts', 'my_login_jquery', 100); function my_login_jquery() { ...
1
vote
1answer
46 views

window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes

I have added two custom meta boxes to a custom post type. One is to upload an image to be stored in a custom field value for a "headshot" and the other is to upload an image to be stored in a custom ...
0
votes
0answers
18 views

WordPress - jQuery - Form [duplicate]

I've checked previous answers in this forum related to my question but none of them solve my problem. Trying to run a jQuery script in WordPress in conjunction with a form I've created (not a ...
0
votes
2answers
120 views

Show success or error messages in Ajax response to Wordpress custom registration form

I have this custom form inside a Wordpress page template <?php if(!is_user_logged_in()) { if(get_option('users_can_register')) { if($_POST){ $username = ...
0
votes
1answer
18 views

Multiple selec2.js file loaded by several plugins

Since upgrading to WP 4.2.2, I have the following error in one of my js file : Uncaught TypeError: jQuery(...).select2 is not a function I google the issue and it seems that this can happen when ...
0
votes
0answers
23 views

Creating a comments voting system

I am trying to put together a voting system for comments and I can't figure out how to make the jQuery function to work. Here is the php function that updates the comment meta with the new vote count ...
0
votes
0answers
65 views

How to add a Custom Mailchimp AJAX Newsletter Subscribe Form

I want to add a custom Mailchimp AJAX Newsletter Subscribe Form to my WP Blog. I found this tutorial and have followed it: http://neal.codes/blog/custom-mailchimp-ajax-newsletter-subscribe. I've got ...
1
vote
1answer
25 views

SSL issues with WordPress site

So, I have a WordPress site that has SSL certificate installed. What I need is to disable SSL on some pages (to make a video ad script to work). But, the problem I am having is, If an user logs in to ...
0
votes
0answers
29 views

How to display jquery dialog box to open on specific page load?

$j(document).ready(function() { $j('#popup_content').dialog( { modal:true, resizable:false, draggable:false, height: 525, width:475, ...
0
votes
1answer
53 views

ajaxurl not defined on front end

I am trying to create a ajaxform on the front side. I am using the code jQuery.ajax( { type: "post", dataType: "json", url: ajaxurl, data: ...
0
votes
0answers
26 views

Select image and display from textfield?

I use the built-in filemanager to select an image from a form. <input id="upload_image1" class="rp-input-field" type="text" name="f16" value="<?php echo isset($upload_image1);?>" ...
0
votes
1answer
21 views

Can't add classes using jQuery from a JSON string with get_body_class()

In order to refresh the classes on the <body>element after an AJAX call, I am writing at the top of my AJAX response the following in JSON: $o[ 'classes' ] = get_body_class('project'); I can ...
1
vote
0answers
54 views

Admin wp_ajax hook returning 0

I've done some research but I can't seem to find the correct answer so I'm hoping someone can give me a hand. I'm attempting to use the wp_ajax hook in the admin section. The functionality should be ...
0
votes
1answer
34 views

Wordpress ajax not working in registration

guys. I've tried to build a wordpress simple registration form with ajax, but it doesn't work at all. Here is my code, a php and jQuery ajax. Please tell me what's wrong with my code. FYI, (1) the ...
0
votes
1answer
73 views

Using AJAX to return search form results

I'm trying to take user input from a search form, build a query based on user input, and then return relevant posts using AJAX. Right now, the form builds the select dropdowns properly. The form ...
0
votes
0answers
32 views

jQuery conditions for the wordpress

So, I have two menu items "First Item" and "Second Item" in my menu called . I want to change the title of the each items based on URL. For example, let say you are on the following URL: ...
0
votes
0answers
11 views

open wordpress tinymce editimage dialog on image click from editor

How can i open wordpress tinymce editimage dialog instead of image edit toolbar options. I did following but not seems working editor.onClick.add(function(editor, e) { if ...
0
votes
0answers
31 views

The jquery.js and Form Lightbox plugin conflict

I'm currently building a wordpress theme and I want to add two effects. On one effect I want the header to change opacity and hight on scroll and I did that by adding this lines of javascript ...
0
votes
1answer
56 views

How to include jquery validate in a template

I am attempting to load jquery's validate methods in my template file. The idea is to be able to run something like this: $jquery("#generateForm").validate({ submitHandler: function(form) { ...
0
votes
0answers
23 views

Javascript function to switch out images

I am trying to make a simple function that switches out small images with a large image onclick. The following setup works on the first click, but after that things go sort of haywire and images ...
0
votes
0answers
17 views

Remove old jQuery from my theme's files

I installed a silder plugin "smart slider 2" and when i put the code on the index file it shows "blank" space instead of the slider!, when i asked their support they told me to remove the old jQuery ...
0
votes
0answers
30 views

Using a JQuery Plugin on a Static Page

I have recently stumbled upon nicinabox's JQuery SuperSlides plugin and I would like to use this as a static front page for my WordPress website. The usage page ( ...
0
votes
2answers
59 views

how to remove default jquery and add js in footer?

I want to remove default jQuery, because I am adding new or latest jQuery. Also I want include some js in my footer. How can I do that? I want to add another different js like a slider js or css in ...
0
votes
1answer
34 views

jQuery functions work in console, but not live

I am trying to traverse the DOM in a number of places, replacing some of the content. jQuery('.homepage_buttons_text a[href^="http://danrobertsgroup.com/?attachment_id=1037"]').each(function(){ ...
0
votes
3answers
78 views

What is calling jquery?

I just cannot figure out what is calling two jquery scripts in my theme. Even if I turn off all plugins, they're still being called. I have not enqueued them in my function.php and also not in my ...
0
votes
0answers
67 views

Using Isotope in WordPress portfolio

I'm trying to create a custom post type portfolio and use Isotope for filtering according to categories but I'm not doing something right. I've loaded scripts in my header.php, created a custom post ...
0
votes
0answers
29 views

How to get phpchart to work in wordpress, jquery errors.

I'm trying to show a phpchart on my site but I'm getting a lot of jquery errors. phpchart support suggested I use iframe and "host" an external page inside the WordPress. How would I do that? I ...