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

window.send_to_editor from custom thickbox button

I am trying to append a shortcode to the editor from a custom thickbox window. Everything is working smoothly except that the content isn't being sent to the editor. Here is the thickbox HTML. ...
0
votes
0answers
8 views

Populating a Gravity Form Field based on the output of a Select box

I am developing a Wordpress site to roll into a phone app. I am using Wordpress, Woocommerce, Gravity Forms and Grvaityviews. While I am using Gravity Forms my question is basically how can I update ...
0
votes
0answers
7 views

Adding a jQuery rotator function

I wanted to test and use the bellow function from @kaiser for a jQuery rotator, but I received an error. Can anyone tell me what is wrong? I have followed all instructions of the author. The ...
0
votes
1answer
14 views

WooCommerce - Checkout suddenly stops working

From one day to the next apparently the checkout, specifically selecting a payment option stopped working. I can't figure out why, but when selecting an option, the page keeps jQuery reloading. this ...
0
votes
2answers
500 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
14 views

I' trying to display list of post and next and previous navigation for posts

using ajax in wordpress but i'm not able to get the same thing. here is my code this is my tag.php to display the posts " > <div class="post_text"> ...
0
votes
0answers
30 views
+100

Adding fields to the media uploader with jquery listeners

So I have the code to successfully add a select field to my media uploader (gallery view) which is cool, but I also need to add some jquery listeners to that field. I'm using the ...
0
votes
0answers
3 views

Perform a 'refresh' transport or open the site in new tab, after saving the theme in Customizer

Is it possible to perform a 'refresh' transport after saving the theme in Customizer? Can you help me about this? If it is not, then my plan B is just to open the site in new tab after saving the ...
0
votes
0answers
19 views

How to solve this script problem in theme directory?

I have a jQuery Ajax call that calls a php script. This call works if the file is in the root of the site but does not work if this php script is in the theme folder . Additionally, I have a 500 error ...
1
vote
1answer
977 views

Intergrating agile carousel to wordpress: how to write the ajax_callback function

json is totally new to me how to write an ajax_callback function for agile carousel to work in wordpress? Below is the jason data format that I need to write as php arrays for it could be parsed by ...
0
votes
1answer
17 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

What to do after a wrong RewriteRule?

I have A Wordpress MU and following this answer I changed my root .htaccess placing this before the Wordpress loop RewriteRule / /subfolder [R=301,L] trying to have a different homepage. It didn't ...
0
votes
1answer
45 views

Prevent other versions of jquery from loading on static front page

This site is using cordillera which calls on /wp-includes/js/jquery/jquery.js?ver=1.11.2. The child theme contains a front-page.php which consists of: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...
0
votes
3answers
784 views

wp_dequeue_script not working in my plugin

There is a theme my client is using. It enqueues many scripts in the admin area of WordPress. I'd like to dequeue these so that my plugin works properly. Commenting out this code wp_enqueue_script( ...
0
votes
2answers
2k views

Using Jquery submit with ajax request

When the user clicks the 'submit' button on my form, I would like 'this will be echoed back' to be displayed within an alert. The only JS console error I get: Failed to load resource ...
1
vote
1answer
1k views

Proper way to load a single post via Ajax?

I'm loading single posts via Ajax into a div that I have set up on my index page. Everything is working fine in this regard. I want to use history.js to push/pop the state so if users enter ...
0
votes
2answers
1k views

How to add a “ waiting” icon for an ajax in WP frontend?

This is my search js code for processing search : jQuery(document).ready(function($){ $('#searchsubmit').click(function(e){ e.preventDefault(); var searchval = $('#s').val(); ...
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
15 views

JQuery is not defined but jquery script is loaded in source [closed]

I'm new to Wordpress and I'm trying to use JQuery on a static home page. I'm getting the infamous "Uncaught ReferenceError: JQuery is not defined" error, although in the page source the JQuery script ...
0
votes
0answers
18 views

jquery is loading js scripts with 1 script for a few sec a good aproach?

so..... I want to make a dynamic table from a mysql query and i've done it successfuly but... I dont like the idea off people being able to look at my script files. Is there anyway to avoid this? My ...
0
votes
2answers
8k 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 ...
4
votes
1answer
149 views

Move Wordpress native javascript to bottom of page?

Checking my page in google page speed insights, it complains that there are some javascript that is blocking the rest of the page from loading. The javascript in question is native Wordpress scripts ...
0
votes
1answer
2k views

Fancybox Object has no method error

I already searched related question but most of them are duplicate jQuery lirary, My problem is different coz the website load only one jQuery Library, I am using fancybox for this page's play video ...
0
votes
0answers
6 views

Global Navigation for Multi-site Sub-sites Using jQuery

I'm looking to add the main site's main menu to the top of all sub-sites on a multi-site install. Requirements The menu should appear directly after body, above any site content, independent of ...
0
votes
1answer
519 views

How to include plugin function in theme's functions.php file

Good day, I'm trying to reduce the jquery dom manipulations by including the right plugin functions in my theme's functions.php file. For example, I have a link which triggers a jquery dialog, which ...
0
votes
0answers
19 views

Bootstrap Drop Down menu is not working

Bootstrap dropdown is working when i added the jquery( https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js ) in footer and by deregistering wodpress default jquery. When i disabling the ...
2
votes
2answers
394 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
19 views

Open Modal and load external URL in new tab

The theme CouponXL http://demo.powerthemes.club/themes/couponxl/ that is specific offers and discount coupons, clicking on a discount coupon (SHOW CODE) comes a modal window (from its own URL) and in ...
0
votes
0answers
10 views

Not show script code in widgets

Put the script code , but it does not appear, no matter which widget is . The code is a counter for visits. Putting it in the Visual editor remains empty. Any other code appears. <script ...
0
votes
1answer
541 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
2answers
758 views

admin ajax php success returns 0

I have looked over many posts on here and other websites and nothing I do seems to work. What I am doing is, I have a custom template file and inside that file I have a div that I want to populate ...
0
votes
1answer
371 views

Accessing Advanced Custom Fields with Repeater using jQuery instead of PHP

I am using Advanced Custom Fields (with repeater) and am currently using the following code to access the fields, i.e.: <?php if( have_rows('postage_prices') ): ?> <ul ...
0
votes
0answers
14 views

jQuery.suggest only suggestion is “0”

I'm trying to get suggestions in a text field with data from a database, inside an admin page. The only suggestion I get, no matter what, is always "0".. why? Relevant code parts the ...
0
votes
1answer
406 views

Custom meta box with jQuery.sortable custom post type list

What I'm trying to do is have a custom post type ordered differently on different pages. I've searched around for quite a while and can't seem to find anything to help. I have a post type named staff ...
0
votes
0answers
22 views

Display parent and child taxonomies in separate drop down select fields

I've used a piece of code from another question here but my second select field did not changed accordingly. Can anyone tell me what's wrong? Below is my code: My php functions: function ...
0
votes
1answer
806 views

echo do_shortcode for Contact Form 7 from within dynamically loaded php file

I am loading a php file containing echo do_shortcode('[contact-form-7 id="568"]'); using jQuery .load() but the shortcode returns nothing. I have seen this question and answer and understand that ...
0
votes
0answers
14 views

How to add slider with description on images and (1/8,2/8,3/8) function [closed]

I'm building custom site on wordpress I created all i wanted except slider for galleries. I find this theme http://horizontalwp.com/preview/HWP/ and I really like their slider can anybody advice me ...
0
votes
0answers
36 views

Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn't work

I've added to the normal WordPress gallery popup (when clicking "Add Media" in the WordPress editor), in order to allow my custom gallery type to be selected (which interacts with / uses the main ...
0
votes
0answers
14 views

how do I include a link when it was click and make button disabled forever

jQuery( document ).ready( function( $ ) { var counter = 1, element = 'input.edit'; $( element ).click( function(e) { counter ++; // for control debugging in console ...
0
votes
1answer
438 views

Save jQuery UI Sortable on Wordpress

I have basic jQuery UI sortable code that works perfectly. I just want the position of each item to save when a user changes it. I am using Wordpress multisite version 3.8.1 and each site will have ...
0
votes
1answer
101 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
2k 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
1k 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
0answers
12 views

Theme Customizer not recognizing Widgets

First of - i do not know much coding, though i do learn quickly and am looking to get this issue sorted ASAP. I am sure it is something simple. When i load up my site in the Wordpress Theme ...
-1
votes
0answers
26 views

how do I input the link after pressing the button

hi I have use this jquery code jQuery( document ).ready( function( $ ) { var counter = 1, element = 'input.dokan-btn.dokan-btn-theme.dokan-btn-lg'; $( element ).click( function(e) { ...
1
vote
1answer
786 views

Right way to update widget on dynamic new input field

I have code to add an input field dynamicly in my theme. I have testd it, as a metabox and it works. But, not in a widget. First add and update, that codes work, but when I refresh page or try to ...
0
votes
1answer
34 views

How to Add Jquery FullCalendar in wp plugin in admin

wp_register_script('moment', plugin_dir_url( __FILE__ )."js/moment.min.js", false, null, true); wp_register_script('fullcalendar', plugin_dir_url( __FILE__ )."js/fullcalendar.min.js", false, ...
0
votes
1answer
408 views

Dynamic image grid gallery

I want to create a project with the following image grid gallery. I try to do with the using of masonry JQuery My code : functions.php wp_register_script( 'pkgd', get_template_directory_uri() ...
0
votes
4answers
2k views

Wordpress Ajax always returns a 404 error

I just got this code from a tutorial. I can't seem to get it to work. HTML (home.php) <form name="myform" id="myform" action="" method="POST"> <!-- The Name form field --> ...
0
votes
0answers
23 views

Conflicts with jQuery

I wrote a plugin that works fine, but in one site I get jQuery loaded twice even if I don't enqueue it myself (I guess the theme loads it also). I tried to deregister it and than again enqueue but ...