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
401 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
29 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
17 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
147 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
131 views

Add tinymce buttons to caption textarea in media uploader

I want to add some basic tinymce buttons ( Bold, italic, underline ) to caption textarea in media uploader in WordPress. (Shown in attached image) I dig a little bit into wordpress core in media.php ...
1
vote
0answers
138 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
375 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
181 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
323 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
190 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
275 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
375 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
198 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
547 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
75 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
130 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
127 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
554 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
497 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
723 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
269 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
796 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
282 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
187 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
725 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
240 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
11 views

Enqueue javascript that inserts custom php widget into jQuery-constructed div

What I need done: The mobile menu on the site (let me know if you want to see the dev site, so I don't get marked as spam for posting the link) is loaded by a script that hides the main menu when the ...
0
votes
0answers
4 views

simple custom lightbox failing

I've built a simple lightbox, easy enough with organic pages, I have the code working on codepen and a local file, however the second I throw it in wordpress it isn't working, maybe you guys can help ...
0
votes
0answers
23 views

How to get attachment id as soon as it is uploaded through media uploader in jquery?

Using jquery, I am trying to get image attachment id of all images requested to upload through media uploader on post edit page or upload.php. Here is what I tried but this works after all images are ...
0
votes
0answers
32 views

jQuery .find() is not working (right after it DOES work…) in tinymce extension

I am trying ultimately to get a character counter to show up beneath a text area in a form that is generated in a thickbox via jQuery as a TinyMCE extension. Before I work on the code to calculate ...
0
votes
0answers
26 views

How to specify url for ajax call in wordpress plugin

I want to use ajax form submit in a plugin, the submitted data will be processed by a script saved as handler.php in the plugins folder, how do I specify this in the jquery script, ordinarily ...
0
votes
0answers
21 views

How do I make a themeable jQuery plugin in Wordpress?

I'm writing a plugin in jQuery that I would like it to be customisable in wp-admin and I'm thinking of the best way to do it. For example, if I was writing a slider plugin and I wanted the the arrows ...
0
votes
0answers
23 views

How to use Jquery properly when editing page

I only want to use a simple JQuery in some of my pages, but the code just not working. Here is some of my background. I am using child theme. Under my child theme folder I do only have 3 files: ...
0
votes
0answers
43 views

Retrieve customizer value using ajax or customizer api and print the value in theme

one of my clients have Branches. one located in new york another in los angeles and etc... in the live site we print new york phone and address(from the customizer) as default. what i need is to ...
0
votes
0answers
94 views

Uncaught TypeError: Cannot read property 'ajax' of undefined

I'm trying to show data from a JSON object in the content section of a WordPress website. The following static HTML works like a charm. <!DOCTYPE html> <html> <head> ...
0
votes
0answers
20 views

Create Notification on Top Bar

I want insert to top on wrapper and top wp admin bar, like this: http://getconversion.com/products/gc-message-bar/ but i always fail... Can i use jquery prepend after body? <style> ...
0
votes
0answers
32 views

Make jQuery library load before plugin files in child theme

I'm setting up a site with child theme. I have installed several plugins. But few plugin files (fancybox, jQuery UI files) are loading before the jQuery library. So I am getting this error: undefined ...
0
votes
0answers
29 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
27 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
0answers
43 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
24 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
0answers
64 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 ...
0
votes
0answers
28 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
0answers
15 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
190 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
0answers
73 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 ...
0
votes
0answers
24 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
0answers
45 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 ...