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

2
votes
0answers
415 views

How to reload a select box of posts dynamically?

I'm using custom meta boxes for a project. I have created a custom taxonomy (select box) and I have another select box populated with Posts. I need to only load the posts based on the selection of the ...
1
vote
0answers
16 views

Edit single attachment on click (WP-admin)

I've created a custom media manager for a CPT I've created. I have everything functioning properly except an edit function. I want to have an edit button for each attachment that gets added to the ...
1
vote
0answers
36 views

Access Customizer widget instance form

On the WordPress admin widgets page there is a known issue with the widget form not being available the first time a widget is added to a widget area. This can be seen in this trac ticket here: ...
1
vote
0answers
29 views

Limit filetype and wp media

This is my input markup: <div class="button-primary" id="fileToUpload">Upload</div> This is js: jQuery( '#fileToUpload' ).click( function() { var custom_uploader = wp.media ({ ...
1
vote
0answers
207 views

Get Page content to displayin Bootstrap Modal

Ok I'm a relative novice here, and after looking around I still haven't found the answer to my problem. I'm basically trying to link a Bootstrap Modal to some text in a footer (widget), the content of ...
1
vote
0answers
150 views

Using color picker in plugin, does input attribute order matter?

I'm trying to use the WP color picker in a plugin admin menu and it doesn't seem to be doing anything at all. I'm following the directions here: ...
1
vote
0answers
396 views

jQuery and AJAX Not working with Select Form Element

I seem to be having a strange issue with jQuery and a newly-created AJAX form/function. I'm pretty new to AJAX so please bear with me. Here's the jQuery: ...
1
vote
0answers
195 views

First Attempt at AJAX and it keeps getting Canceled. Can't Get Results to Show

This is my first attempt at Ajax. I've got it working in the fact that the database gets the record inserted properly, however, once that's done it won't return the response that I've set up. Its as ...
1
vote
0answers
341 views

How to populate custom field dropdown box based on prior selection?

I have two dropdown boxes for a search that uses custom fields and I need the second dropbown box to be populated depending on the results of the first box. So far I have: <form role="search" ...
1
vote
0answers
198 views

WP UI style within shortcode - Any Suggestions?

I am using the wp-ui Wordpress plugin to create vertical tabbed content. What I want to do is add a span to part of the tab title - to add some additional style, but the shortcode/plugin strips my ...
1
vote
0answers
294 views

Vanderlee jQuery color picker and WordPress Errors

Has anyone gotten the Vanderlee jQuery color picker to work with WordPress? I'm evaluating color pickers with alpha support for my theme and this one just refuses to work. ...
1
vote
0answers
394 views

Adding wp_enqueue_media(); causes problem

I want to add the media uploader in the theme options page. If I add following code in the options page, the media uploader works fine there, but it creates problem in the standard posts featured ...
1
vote
0answers
208 views

Fancybox type popup window that's not an iframe

I'm a bit stuck and need some help to get me going in the right direction. I'm trying to do something similar to the lightbox style popup on this website: http://cargocollective.com/montessori I ...
1
vote
0answers
596 views

Getting jquery to work with custom theme

I am trying to get some jquery plugins to work with my custom theme. Up until now I was doing this: function my_scripts_method() { wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', ...
1
vote
0answers
77 views

videopress videos are not displayed when loading the content with ajax in a lightbox

I'm using videopress and I'm adding the videos into posts with the videopress shortcode, and when I visit the post I can see the videos and play them, but the problem is when loading the post with ...
1
vote
0answers
148 views

Bypass nonce value while trashing a post

I want to move a post in trash but the condition is that simultaneously I need to delete some more posts. Sample Code: jQuery(function($) { $('#delete-action a').unbind(); $('#delete-action ...
1
vote
0answers
129 views

Using window.onload with Ubermenu

I am using a plugin to place this code on specific pages. But it is not firing correctly. Has anyone had experience working with Ubermenu, WP and jQuery? Do I have to call jQuery into my ...
1
vote
0answers
579 views

jQuery Plugin to use Wordpress functions in AJAX request

I'm using Chained Selects jQuery Plugin to create multiple chained selection fields. I'm using the remote version of the plugin to build the related options by means of AJAX request from a separate ...
1
vote
0answers
505 views

Post Comments with Ajax in Wordpress

I use this code to post comments with ajax on my WP blog. It works fine but I display the comment form on my homepage so the plugin only works for the first post (first comment form). I want it to ...
1
vote
0answers
772 views

How to bind data-src attribute for the image in the post using jquery?

I'm trying to use foresight.js for responsive image in the wordpress blog. For that I have to add the data-src attribute in the place of src in the <img> tag. Or I have to get the url from the ...
1
vote
0answers
284 views

Validating a cloned/repeatable input (jQuery)

I'm trying to create a repeatable field an upload image input with image preview for my Theme Options page and I have the following: function theme_options_validate( $_POST ){ if ...
1
vote
0answers
867 views

Uploading PDF using Media Uploader

I have been using a custom code to upload images to Wordpress using custom metaboxes. Here is the code: <script type="text/javascript"> jQuery(document).ready(function( $ ) { var ...
1
vote
0answers
285 views

Load the next posts ajax

I use the below code to display the first 5 results. <ul class="category_list_view" id="widget_index_upcomming_events_id"> <?php global $post,$wpdb; $post_number = 5; $category1 = $category; ...
1
vote
0answers
139 views

How does Wordpress handle HTML Tables interaction with jQuery

I have javascript that gets the width of a table and reduces the css fontsize of text within the table until the table width is less then the width of its parent div. The code bellow shows the ...
1
vote
0answers
194 views

Dukapress jQuery(“form.product_update”).livequery is not a function

I have a wordpress site running Seduction theme and Dukapress. Once you add a product and reach the checkout page, the payment and discount button is not clickable. Chrome/Firebug throws the error ...
1
vote
0answers
729 views

How do I locate the exact location where this error is occurring 404 page not found

I recently installed a wordpress theme and lots of plugins. This error appears on blog post after refreshing page for second time anywhere in between the post content. Here's the link to my site: ...
1
vote
0answers
245 views

jShowOff not showing numeric links, shows 'undefined' instead

I made a content rotator with jShowOff in a wordpress site, and wanted to have numeric links to each slide, that normaly comes by default but somehow shows 'undefined', the only thing i found on the ...
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
17 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
3 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
4 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
0answers
14 views

Contact form 7: Check if user is logged

I'm using wpcf7-list-item trigger to define which content will be showed after mail sent. But how I check if user is logged or not? $(document).on('mailsent.wpcf7', function () {});
0
votes
0answers
11 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
13 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
16 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
0answers
21 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
14 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 ...
0
votes
0answers
27 views

Dropzonejs with WPCF7

I have a form with the plugin WPCF7 and i have made it possible to upload multiple files(with drag and drop). Now the customer wants to upgrade the form too be able to upload several files at a time ...
0
votes
0answers
27 views

Front-end Ajax File Upload

I'm working on a project where registred users can upload file to a specific post type. For a more fluid navigation, I'm making this whole part with Ajax, so the page never reloads. However I'm having ...
0
votes
0answers
15 views

map with ajax content load

Hi i made a svg mapa to load data from a locations cpt, so when i click the location it loads the content through ajax. It all works fine, but that is in the cpt page archive page. Now i need a map ...
0
votes
0answers
28 views

JQuery Datepicker Blackout Dates

add_action('frm_date_field_js', 'limit_my_date_field'); function limit_my_date_field($field_id){ if($field_id == 'field_jk8k8s'){ //change jk8k8s to the key of your date field //get all the ...
0
votes
0answers
6 views

jQuery.GI.TheWall trigger issue

i want to use jQuery.GI.TheWall in my post. it is working fine on normal HTML page when i place in wordpress page not work work. i show error Uncaught TypeError: undefined is not a function ...
0
votes
0answers
28 views

How to stop redirect to 404 page when I use jquery onchange function to select a value from a form field in wordpress

I'm developing a wordpress woocommerce website where I put a form where two drop down exists. where selecting a value from the first dropdown after page refresh it automatically goes the second ...
0
votes
0answers
34 views

Script not working with jQuery 1.x and wordpress

I'm having a bit of trouble with my wordpress site. In my footer I have some code that defers loading the JS file Misc1.js <script type="text/javascript"> function downloadJSAtOnload() { var ...
0
votes
0answers
22 views

Extract and amend variables from 'like' plugin and put into visual meter gauge plugin

I am trying to extract the total number of likes associated with different posts from the WTI Like Post Pro wordpress plugin, then subtract the number of unlikes and feed this total into a meter gauge ...
0
votes
0answers
28 views

Update a div with ajax result

I am working in wordpress and this is an ajax call and I want the result of a row returned to a div with id #hero. Now since the result is a for loop and hero div is in each row. And the form has ...
0
votes
0answers
9 views

plupload.predictRuntime ERROR in Wordpress when Media Upload

plupload.predictRuntime ERROR in Wordpress when Media Upload. Shows this screen: It doesn't uploads or shows any image, and the error shown at debugging in Chrome is:
0
votes
0answers
39 views

Error with JQUERY in Multimedia Library of Wordpress

With the latest version of Wordpress I can't upload media. It shows this message from debugger: Uncaught Error: Syntax error, unrecognized expression: a[rel=] ...
0
votes
0answers
28 views

How can I organize nav menu lists as columns in WordPress?

Here’s what I am having a hell of a time with. I'm working on a dev site (which is WordPress based) that can be seen here. You see the responsive navigation for the ‘Course Schedule’ section is ...
0
votes
0answers
37 views

How to convert jQuery plugin to a Wordpress plugin?

I am an "old" (64) rookie to the Wordpress world. I have been tearing what little hair I have left out over the past week trying to understand and use jQuery to build a simple calendar and display it ...