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

1
vote
0answers
1k views

Filter wordpress post categories with jquery/ajax and pagination?

Currently I have a website working with Wordpress and Jquery Quicksand (http://razorjack.net/quicksand/). However I don't want to show all posts at the same time. I wish to show e.g. 6 posts and then ...
0
votes
0answers
34 views

admin-ajax.php is slow [duplicate]

On this site, it usually takes around 5-7 seconds for admin-ajax.php to process and return the response for when the user clicks on the plus icon on project hover. I'm not sure if this is a WordPress ...
1
vote
1answer
827 views

Jquery integration with my theme

I want to add a slide side ways jquery to my website, I tried the following code, but seems not to be working Jquery code:- <script ...
1
vote
3answers
1k views

How to trap “Publish” button to check for meta box validation?

I'm trying to do some form validation on my custom meta box, and I remember somewhere reading about some javascript function to disable/enable the Publish button - except I can't find it. How do I ...
0
votes
0answers
57 views

Pulling apart & understanding the WP Admin Menu Flyouts

I need some help, or advice, on [how to] understanding the Admin Menu Flyout submenus. I've narrowed it down to the following key components: ul.wp-submenu This is the actual submenu, used to ...
0
votes
0answers
134 views

Masonry callback during load

My photography website runs on a masonry layout. Masonry is called in the footer but the images load beforehand, causing it to look fairly messy until the images are completed and masonry is called. ...
0
votes
0answers
42 views

Send email in wordpress

I want a functionality to send email in wordpress but what I have tried below code but what I want is that an additional textbox forinstance called "name" is appended to my email ... can be append the ...
0
votes
1answer
138 views

Wordpress Insert not working with ajax

I am trying to enter insert data with form in wordpress and want to use ajax for that. Without ajax it works fine but when I use ajax pressing the submit button gives 0 in result and the data is not ...
0
votes
1answer
80 views

Add a counter for mouseovers (custom field)

I am trying to count mouseovers on the div for each post. The div is inside the loop. I am almost there, I think you might have to just help me correct some mistake. The div and jquery. Notice that I ...
1
vote
2answers
1k views

How to put JQuery/Ajax inside shortcode?

The purpose of this plugin is to create a list that users can modify with up or down votes. The shortcode is supposed to display the list on a page and use JQuery to fadeIn and fadeOut while updating ...
1
vote
1answer
98 views

wordpress count link clicks by ip address

I am building wordpress web site, which will have an option to download zip file from certain custom post type. By clicking on download button, user automatically starts with downloading zip file. ...
2
votes
2answers
818 views

Modify this loop to fit my jQuery slider (slides)

I´m trying to make a slider which takes thumbnails from a certain custom post type and displays for of them for each "slide". I get the slider and thumbnails to work like they should, but I´m unsure ...
0
votes
0answers
30 views

Change php via js, is it possible?

i want to change my headers dynamically ( not in WP admin dashboard ) <div id="Header_wrapper"> <?php if( header_style == 'header-creative' ) get_template_part( 'includes/header', ...
0
votes
1answer
200 views

Remove Yoast jQuery from front end

I would like to remove the following two script and one style tags. They appear to be added by the Yoast SEO plugin, but looking through their plugin files yields nothing promising. Does anyone know ...
0
votes
1answer
63 views

Ajax Query returns zero

I am doing simple wordpress select query and want to do this with ajax jquery and do not want the page to refresh when I press search button and writing text in search textbox. As soon as I press ...
0
votes
1answer
99 views

Search query with Ajax

I'm running a $wpdb select query and getting it’s parameter from a textbox. Result shows as soon as I press the search button, but I want to do the same with Ajax without refreshing the page. I have ...
0
votes
0answers
161 views

How to show portfolio items from modal popup on portfolio plugin

When I have used this modal controller in while loop, the modal pop-up is working with framework metabox. The problem is when I reload my portfolio page, where all portfolio images are showing, the ...
-2
votes
1answer
31 views

Jquery conflict or not loading in wordpress theme i am using

i have included jquery for 3 things accordions, search icon click and mobile slider menu, in Header.php. But either the page is not loading on first sometimes. So i have to refresh and all works fine ...
0
votes
0answers
36 views

Inserting jQuery in a WordPress Code Block

I have a theme that already uses jQuery, so I thought I could use some of it by inserting <script type="text/javascript"> jQuery(window).load(function() { jQuery('form').css( ...
0
votes
1answer
102 views

WP AJAX API with JS file

So I am having a hard time trying to set my contact form working on a theme I am building. It uses JqBootstrapValidation plugin. Someone told me that the reason this is not working is because WP is ...
1
vote
2answers
1k views

tinymce is not defined when not using wp_editor

I am using jQuery tinyMCE to populate dynamically generated text areas with tiny MCE editors. When I use the WordPress wp_editor function before I call the jQuery version, I have no issues. If I do ...
0
votes
0answers
22 views

Extra profile fields issue on Chrome

I'm using a custom function to create extra fields on WordPress profile editor, such as birthday, custom messages, etc. Two of them are image fields, so the user can upload custom cover and avatar. ...
0
votes
0answers
582 views

500 (Internal Server Error) of external php file

I am currently using WP Web Scraper version 3.2. Once I insert the shortcode or template tag (php code) directly into my page, the plugin works perfectly fine and the values appear. I decided to place ...
0
votes
2answers
156 views

How to add jQuery script?

I want to add small jQuery script in my WordPress how to do that? Here's the JQuery script that I want to add: ( function( window ) { 'use strict'; function classReg( className ) { return ...
0
votes
1answer
146 views

jQuery function not working

I have a very simple jQuery function that is supposed to toggle a div's visibility: jQuery( ".signUp" ).click(function() { $('.signUpForm').toggle(); }); The HTML is a simple signup form ...
0
votes
0answers
193 views

WP media manager in metabox to choose all media types

I'm trying to make a metabox for featured media on my posts, and would like to use the Media Manager like it is used in the editor, which is with all the options. I've tried this and similar things ...
1
vote
1answer
42 views

No data received

When I use the wp_register_script() and wp_enqueue_script() to load the jquery for the wordpress I got "no data received result with other information like this : Unable to load the webpage because ...
0
votes
1answer
132 views

search in jquery mobile returns blank page

Regular prelude: new to jquery mobile, sorry for the long pieces of code. Trying to build a mobile version of my theme. started easy by placing a header content and panel and search form. when ...
0
votes
1answer
76 views

Adding unique marketing messages between certain products whilst using isotope/Infinite Scroll

I am currently using WooCommerce to display a list of products using the following loop to enable the post-type "product" be displayed and allow for pagination so I can use Infinite Scroll to smoothly ...
1
vote
1answer
1k views

Error when posting comment form: The error is TypeError: e[h] is not a function

I am getting an error when the function below posts the form (from the second time, the first time it is blocked). When I click the submit button after this, the form submits without problem. The ...
0
votes
1answer
399 views

need to override function in jquery.ui.datepicker.js

In this location in wordpress /wp-includes/js/jquery/ui there is a file jquery.ui.datepicker.js I need to override this bit of code noWeekends: function(date) { var day = ...
0
votes
1answer
1k views

Wordpress slider that allows image, headline, text, and button?

I'm looking for a slider for Wordpress that will allow me to create a really clean-looking site—the kind of site where you land, you see text and images, and you don't even know you're looking at a ...
0
votes
1answer
380 views

I want to enqueue a .js file to my child theme

I tried to enqueue a custom .js file in my child theme directory. In the functions.php of my child theme I find the following code /* After this. you can override Accessible Zen's pluggable ...
0
votes
1answer
188 views

Dropdown filtering extremely slow

I have two dropdowns on my frontpage. The first dropdown selects a custom post type, and the second selects a location. The second dropdown is filtered based on the selection of the first dropdown ...
0
votes
0answers
52 views

Custom metabox for multiple images gives a JQuery error saying a function does nog exist

I have a script that creates a custom metabox and makes it possible to upload multiple images to one page post. It gives me no error but the console tells me this: TypeError: add_field_row is not a ...
0
votes
2answers
126 views

Disable wordpress from including jQuery in the head section

I need to make Wordpress not include jQuery in the <head> section of every page. The reason I need this - is because I am already including jQuery at the very bottom of the document. I tried ...
0
votes
0answers
125 views

How to force TinyMCE to update

I'm using the wp_editor function to display TinyMCE on the front end of my site. I have an AJAX script hooked up to the submit button on my form that shoots off to admin-ajax.php (as in WordPress ajax ...
0
votes
1answer
214 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
0answers
370 views

Pass php to database in JQuery: With AJAX?

I have this plugin that adds a metabox to the post-page screen to upload multiple images. This works great however I'm missing one option. I want to add that function to the metabox. The problem is ...
13
votes
3answers
8k 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: ...
0
votes
0answers
241 views

autocomplete automatically wordpress custom post dropdown attached to taxonomy term using Ajax and jQuery

Please, I want to create a wordpress-Ajax and jQuey driven form, that sends a bench of informations about a list of schools. That form will process data from custom post type" School" related to an ...
1
vote
0answers
167 views

jquery tinymce and bundled wp plugins

So I managed to get dynamically generated versions of jquery tinymce to work in wordpress and work with the bundled wplink js plugin - albeit pretty badly hacked together. Was wondering if anyone has ...
0
votes
1answer
55 views

Is there a default way in wordpress to create a overlay in the dashboard?

Is there a default way in wordpress to create an overlay in the dashboard area? I need a jquery ui dialog to open after a button click. This is how it goes: The button click will fire a PHP function ...
0
votes
1answer
76 views

How to display checked posts on another page over AJAX? (like comparasion style)

I wanted to create an "comparasion" model for my WordPress Website, but gone bad at that. I cannot figure out how to ... On one page I have displayed post (custom post type, ex. "Products"). Next to ...
0
votes
1answer
111 views

jQuery code not working in widgets page

I'm trying to add this code to one of my widgets form, but it doesn't work. <script type="text/javascript"> $(document).ready(function() { $('#select').change(function() { $("#" + ...
-2
votes
1answer
200 views

JQuery UI plugin not working in IE7?

I want to use the dialog box from this plugin, but it isn't compatible for IE7. When I run it in Internet Explorer's IE7 emulator, the dialog box renders weirdly. It's partly transparent, ...
6
votes
1answer
606 views

Concatenate and minify dependencies for enqueued JavaScript files

I'm loading a JavaScript file using wp_enqueue_script into my theme. However, along with it, I'm loading several jQuery files as well, as dependencies for the enqueued script (which has already been ...
0
votes
4answers
315 views

Wordpress Plugin development Call to undefined function jQuery()

Seriously, I lost my whole day with this... Either I completely missed the point... Or I really cannot find the proper information on the internet... Everywhere I find they say to load jQuery in the ...
-1
votes
2answers
1k views

Dynamically populate Cascading Dropdown from MySQL using JQuery/AJAX [closed]

What I'd like to achieve is managing tables in the front-end of a WordPress page the same way as MS Access does. So, I'd like to show dependent cascading dropdown which are related by foreign key and ...
0
votes
1answer
38 views

Possibility of creating a folder in the wordpress root install and installing a file there, all via plugin?

Here is my situation. I'm creating a plugin, which uses a 3rd party API service. If I include the file ajaxAPI.php in the plugin itself, then call it via jQuery ajax with the full url, such as ...