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
1answer
12 views

“JQMIGRATE: Migrate is Installed” How do I find the problem code?

I have a site and since updating to 4.5 it has a very subtle display bug that seems jQuery related (full bleed images have a white border that snaps away into correctness when you resize window). ...
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
0answers
15 views

clicking the next pagination, the last post was also in page 2 error

I need some help or explanation regarding pagination in custom post type, I'm using a theme, so there is a pagination readyset there is one problem, if i set the custom post type post per page into 2 ...
-1
votes
1answer
25 views

How do I load this jQuery to my wordpress page?

I hope you can help me, I've scoured the internet for hours and can't seem to make this work. I'm trying to follow these directions for using MixItUp: ...
0
votes
1answer
433 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
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 ...
-1
votes
0answers
17 views

How do you hide a post->ID when being click?

How do you hide a post->ID when being click, but only to hide the own post? this what i have in mind: <?php $hide = $post->ID; ?> <a href="#" onclick="<?php echo $hide;?>" ...
0
votes
1answer
22 views

Using Custom Javascript and pHp to send email to myself when a user clicks on an input button but only works on Chrome, IE, and Micorosft Edge

So I am using jQuery and pHp together to send an email to myself whenever a user clicks on the update button of their Ultimate Member form. However, the email only sends when a user is using Chrome, ...
0
votes
0answers
717 views

Loop the posts between two dates selected using jquery datepicker

I went through this link where we can restrict the loop to display the posts only between two dates and it works fine. But if I have a Jquery Datepicker with from and to date, then how can I pass ...
0
votes
2answers
5k 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
31 views

Saving dynamically created options

I have an options page that has a dynamic repeatable table row. Currently there are two date fields, I will add more at a later stage. I'm now struggling on how to save the data to the WP database ...
1
vote
1answer
15 views

How to create popup same as wordpress popup feature

I wants to include a popup window which is same like wordpress popup. Like if we click on the wordpress editor's link button it will open a popup window. I wants to create same like that.
0
votes
1answer
409 views

Ajax call through admin-ajax.php returns 404 error

I am trying to do a pretty basic AJAX request at the moment, just to test functionality, routing my calls through admin-ajax.php. However, every time I try to fire the AJAX request, I get a 404 error ...
0
votes
1answer
41 views

Wordpress site keeps getting flagged as malware [closed]

I have a Wordpress site that is constantly getting flagged as Malware by Google: https://www.google.com/transparencyreport/safebrowsing/diagnostic/#url=damonanddoras.com It is this line in my ...
1
vote
2answers
1k views

how to include a simple jquery file into a wordpress plugin

ok this is my first time to include jQuery into wordpress and it has taken me the 2 full days trying to figure this out. No matter how many articles I read I cannot find a perfect example. Ok so this ...
0
votes
0answers
21 views

Create Sub-Pages for Custom Post Type with Advanced Custom Fields

I have a Custom Post Type called "Projects". I have a archive-projects.php that displays all of the projects. Then a single-projects.php to display a single project. Trouble is, I want the display for ...
0
votes
1answer
20 views

get the post title and print it in the classname

How do you get the post title and print it in the classname using jquery or function code? I wanted to get the post of the title and print it inside may class div name. thankyou
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 ...
8
votes
3answers
4k views

Annoying JQMIGRATE: Migrate is in console after update to WP 4.5

Can anyone explain why is there a constant notice JQMIGRATE: Migrate is installed, version 1.4.0 that points to load-scripts.php in my console when I updated my theme to WordPress 4.5, and how ...
1
vote
0answers
11 views

Script won't execute in the media manager

I'm trying to execute a jquery script on the click of a button in a custom tab of the media manager, but it does not seem to work. I have been told this might be due to the button not being loaded ...
1
vote
2answers
1k 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 ...
0
votes
1answer
13 views

Change shortcode value by jquery in WP Editor

I have this code on the WP Editor <p>[vc_row][vc_column][le_page_grid le_page_grid_layout="1"][/vc_column][/vc_row]</p> and i have two radio buttons on the meta box ...
0
votes
0answers
13 views

Can't get post meta from custom post type metabox

I use Ajax Load More - Infinite Scroll plugin for output custom post type. I have custom meta box link_to with value /something - it's just link. In template of plugin i try to get it <a ...
0
votes
3answers
26 views

Ajax Load more CPT via shortcode

I have a problem with ajax load more for my CustomPostType. I think i have mistake but don't know where. If it possible to edit my code, i will happy. UPDATE I have create div cool to paste in it ...
0
votes
1answer
26 views

TypeError: $ is not a function Error using parallax effect in Wordpress Template [duplicate]

I`m trying to include a parallax Effect into one of my cutsom page templates. The js function is returning the following error in the firebug console: TypeError: $ is not a function The error is on ...
0
votes
1answer
488 views

Theme now uses require.js and enqueue script no longer works

I created a small custom script that fixes a sidebar at different point depending on if there is a banner. I used enqueue script in my child functions file and then a custom.js file with my ...
0
votes
1answer
13 views

How to overwrite iris color pallates from theme to plugin

I am working n plugin for iris color pick and in plugin I want to make my own color pallets and overwritten on iris color picker that use in theme. I create 6 fields in plugin where user can put ...
0
votes
1answer
13 views

How to toggle custom WP archive list

Help! I'm trying to toggle the "SideDish Archive" list in the right-hand sidebar of this page – http://my-table.com/sidedish/. I don't know really anything about javascript. Small company, small ...
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 ...
0
votes
1answer
38 views

How do I get my suggest to only suggest one taxonomy?

I am using the built-in wordpress suggest plugin to call the entries from the terms table. Using the following sql query it spits out all terms: $query = 'SELECT term_id,name FROM ' . ...
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, ...
0
votes
2answers
472 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 ...
0
votes
2answers
970 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
0answers
5 views

Fire this function once [migrated]

I'm pretty uneducated when it comes to JS so bare with me, I have this site that has an intro div that takes up the entire viewport, with a nav menu directly underneath it, I'm trying to create a ...
1
vote
4answers
6k views

Enqueue core jQuery in the footer?

I have this in my functions.php file and I can't get jQuery to load in the footer. The includes file loads in the footer fine, though. What else do I need to do? function starter_scripts() { ...
1
vote
2answers
3k views

Ajax not firing properly using Firefox, but works in Chrome

I'm working on a plugin that seems to be fine in Chrome, but is not firing the PHP script via Ajax in Firefox. It is driving me to distraction. Here are the code blocks that relate to it. First, the ...
0
votes
1answer
38 views

Looking for a better way to handle an ajax script that pulls in post data on click

I've developed a template page that displays a grid of "employees" (a custom post type). That part works fine, but I also needed to set up a lightbox to display additional details on click. To avoid ...
0
votes
2answers
36 views

Check if user is logged in when clicking certain links on certain pages

On my site I have a number of post category archive pages. What I would like to do is set it up so that when links to specific posts are clicked on these pages the user is sent to the post only if ...
0
votes
0answers
17 views

Widget save brake jQuery [duplicate]

I have created a plugin that creates a widget. On the widget form i am using jquery functions that i load using wp_enqueue_script. When adding the widget on a sidebar, everything works. Then when i ...
0
votes
1answer
32 views

Searching JQuery arrays of taxonomy terms for word matches in frontend images upload

I have a need to search through 4 different Taxonomy terms for matches of image tags. Using Jquery. Having hundereds of images to upload and tag and the theme I'm usings back end has a ...
-1
votes
1answer
27 views

jQuery append only works if I select html in admin section [closed]

The following jQuery code works as expected, in that it inserts the specified html after the closing tag. $( "html" ).append( "<div id='bf_rsvp_note_display'></div>" ); However, that's ...
0
votes
2answers
868 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
1answer
591 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 ...
0
votes
0answers
22 views

Detect hover over control label in customizer

In the WordPress Customizer > Site Identity: there's a text field for 'Site Title' wrapped in a list item id li#customize-control-blogname I want to detect whenever a user hovers over this element. I ...
-1
votes
0answers
39 views

Problems implementing jQuery plugin

I'm trying to create a slider using a jQuery plugin in the single.php of my child theme. I want to use a slider that uses thumbnails below the main image to navigate. I'm currently trying to implement ...
0
votes
2answers
674 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, ...
3
votes
1answer
113 views

Retrieve POST data from AJAX call

I have the following JS script : jQuery('#form-recherche').submit(ajaxSubmit); function ajaxSubmit(){ var newFormRecherche = jQuery(this).serialize(); jQuery.ajax({ ...
0
votes
1answer
19 views

Help to upload post attachments from Ajax

My problem is that I cannot upload post attachments from a frontend form. I send data through AJAX to my php files containing functions. Let me be clear: everything is working great, the post is ...
1
vote
3answers
45 views

AJAX call returns 0

In spite of many similar posts, all the proposed solutions didn't work for me, so here we are. I have the following script : jQuery('#term').keyup(ajaxChange); function ajaxChange(){ ...
0
votes
1answer
470 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(); } ...