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

How disable checkbox when listbox value changes in tinymce

I'm creating a custom popup in tinyMCE for WordPress, to insert video shortcodes, so I have a list of websites (YouTube, Vimeo, Vine, and others) in a listbox, and a checkbox to let the user decide to ...
1
vote
0answers
26 views

Add / Update Custom Fields After Select Pictures in Media Window

I just added a button called Add Slider in Add/Edit Post Page. Here's my code in my functions.php : //Add button to create slider add_action('media_buttons','add_my_media_button',15); function ...
0
votes
1answer
20 views

Why load JS through the CMS framework? [duplicate]

Why are we using anything like wp_enqueue_script at all? or register, etc. Why are we sending Javascript through the PHP subsystem? There are all kinds of incompatibilities and inconsistencies ...
0
votes
0answers
9 views

Wordpress built in TinyMCE and jQuery

I am trying to use jQuery (the jQuery shipped with wordpress) to replace a dynamically generated textarea with TinyMCE. var fieldID = jQuery(parent).find("textarea#field_id_1"); tinyMCE.init({mode: ...
0
votes
0answers
7 views

add a class to fields from woocommerce products add-ons to hide with jquery [closed]

I am using woocommerce and the product add-ons extension to add 3 groups of fields to certain products in my shop. There are many fields, up to 23, for some products. What I am trying to accomplish is ...
-3
votes
0answers
11 views

add 4 column grid layout instead of list layout [closed]

I have using the woo-commerce plugin to built my garments site. And my client wants to show two grid layout column(2 products per row & 4 column per row). I have searched various plugins to do ...
-4
votes
0answers
29 views

Woocommerce - remove product with ajax [closed]

I would like to add ajax to the remove product button at the woocommerce cart page, for removing each product individually. I came up with the code below, which i inserted in my theme's functions.php, ...
2
votes
1answer
36 views

Using jQuery to retrieve customizer value

I am trying to use jQuery to retrieve a theme options (customizer) value: $wp_customize->add_setting( 'header_fixed', array( 'default' => true, ) ); ...
0
votes
1answer
18 views

Trouble in enquing all js files under certain directory

I am using _s theme .I have all js files under js folder.My code function _s_scripts() { $js_dir = get_template_directory_uri() . "/js/"; foreach(glob($js_dir.'/*.*') as $file) { $label = ...
0
votes
0answers
16 views

Function to add image link from php to fancybox js

I've got a single-cpt.php page on my website that has a photos' section this needs to display multiple images of the product/location. At the moment when the photo thumbnail loads a lightbox comes up ...
0
votes
0answers
8 views

How to add jQuery div element to each image on wp site?

I'm trying to add the "Share" button to each of the attachments inside of the post. I found function that allows to get all attachments on the post: ...
0
votes
0answers
28 views

Post repeating with infinite scroll

I'm working on this page: http://bit.ly/1ujkiFa I'm creating an infinite scroll of books (wordpress posts). If you see the first row of books is this one: But if you scroll down, after it "loads ...
0
votes
0answers
39 views

why does included jquery always cause problems

I am taking an html template that is fully functioning with the jquery and javascript in the footer and I am converting it into WordPress. I have done this a few times and I always have trouble with ...
0
votes
1answer
8 views

Create thumbs/gallery from custom fields

I'm looking for some direction on what the most proper way to achieve a particular layout on a page. Basically I'm looking at a horizontal, scrollable set of thumbnails at the top of the page's body, ...
-2
votes
0answers
10 views

Create WordPress Plugin for slider with Jquery Sortable in Plugin Setting Page [closed]

I Want to build a WordPress Slider Plugin with Setting Page. Which have jQuery Sortable Feature on Images. Please give me Solution and Effective Article. Please check Example of jQuery . ...
0
votes
0answers
69 views

Adding jQuery datepicker to Custom Post Type Metabox

I've created a custom post type metabox which displays and functions fine. The problem is with the datepicker it just doesn't seem to work, when clicking the metabox youre able to type in it rather ...
-1
votes
0answers
7 views

Showing “Permission denied to access property 'document'” while using addthis in wordpress

I ported a website from umbraco to wordpress. In that website I used addthis for social interactivity. In Umbraco used the addthis script and JQuery 1.10.2 and in wordpress I'm using the same addthis ...
-1
votes
0answers
14 views

SyntaxError: syntax error [closed]

I'm trying to integrate a google map that displays the location of my posts. I managed to integrate the Google map thanks to the API. But I need to add a script just above the div where I insert my ...
0
votes
1answer
15 views

SmoothScroll not working in Wordpress

I have been asked to take a HTML website and develop a Wordpress theme out of it. The website uses SmoothScroll so when a button in the footer is clicked, it scrolls nicely to the top of the page. ...
0
votes
0answers
68 views

Integrating jQuery Datatables with Editor into wordpress admin

I am trying to integrate jQuery Datables into my Wordpress plugin http://editor.datatables.net/ I have Created a database table CREATE TABLE `id` ( `id` int(10) NOT NULL auto_increment, `first` ...
0
votes
0answers
20 views

Infinite Scroll and WordPress plugins

I am using Infinite Scroll on my website, but I'm having some trouble with certain plugins (for example, MapPress and/or Geo-Mashup) that load content via shortcode. The map only displays properly if ...
-1
votes
0answers
25 views

query post_per_page for current archives

I'm trying to define the number of post to display in my slider for my archive templates. here is the code: <div class="flexslider"> <ul class="slides"> <?php ...
-1
votes
0answers
62 views

display post of the year/month/week in slider for archive template

I'm building a archive template, which show the post by year; month; and week. However, this archive template has a slider, which as the moment display the last post created - so it doesnt match the ...
-1
votes
1answer
58 views

limit number of post for achive page

Im trying to limit the number of post for my archive page, in a specific category. I've manage to display post from just the category I desire, However, if i setup a loop to limit the number of ...
-1
votes
0answers
28 views

Create multi level Archives by Year - Month - Week [duplicate]

Im trying to realise a multi level menu ( by hover) of the archives post. I'd like it work like a multilevel dropdown list menu, First level should be the Year; second level the month; last level ...
0
votes
1answer
103 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
58 views

Use jQuery and AJAX to get HTML

I have a jquery function in my theme that should send an array of filters to a PHP file, which should then return a piece of HTML with the filtered posts (it then replaces the contents of a ...
1
vote
2answers
206 views

Can't get a JSON object in response to an ajax request with wp_ajax

I have a problem with WordPress and ajax. This is my javascript part (I trimmed it a bit): var posts = $.ajax({ type: 'POST', url: ajaxurl, async: false, dataType: 'json', data: ...
0
votes
1answer
39 views

Does WordPress support Plupload chunking when uploading asynchronously?

I'm using the Plupload library to upload audio files to my website from the front-end. Here is an example of my Plupload config: var uploader = new plupload.Uploader({ browse_button : 'browse', ...
0
votes
0answers
28 views

Using wordpress with AJAX queries

I have built a custom theme for wordpress and I decided to use AJAX instead of just refreshing the page on each call. However, when I add the Wordpress loop to call in my data, it doesn't load at all, ...
0
votes
1answer
35 views

Wordpress Javascript Widget jQuery Dependency Issue

I am using a local clean install of WP 4.0 en_GB with no plugins. I have been provided with some information to implement a JS widget into my website. <div id="login"></div> <script ...
2
votes
0answers
39 views

How to enable “shift-click to edit this widget” functionality on a custom widget?

I have created several custom widgets using the default widgets code as examples. The widgets all work fine, and I've been using them in production for awhile. I've been working with the new ...
0
votes
0answers
26 views

Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”

i have question, how to hide the "shortcode code" when using the "editor" the same as wordpress do with "gallery"? my clients hate to see shortcodes as "code". And the truth, not only him, but a lot ...
0
votes
1answer
26 views

JQuery Plugins in Wordpress

I have been able to somewhat piece together how this should be done but I am really struggling with it. I want to use the Table Sorter plugin (http://tablesorter.com) in a custom Page Template to ...
0
votes
0answers
45 views

How to edit classes inside shortcode with jQuery

Please someone help me to do this .. I want to add FontAwesome shortcode to my theme I have a shortcode that is generated: add_shortcode( 'sh_icon', function( $atts, $content=null ){ $atts = ...
0
votes
0answers
31 views

Get the number of added tags using jQuery

I've added my jQuery scripts as the following shows: function my_enqueue( $hook ) { if( 'post.php' != $hook ) { return; } wp_enqueue_script( 'my_custom_script', get_template_directory_uri() ...
0
votes
1answer
58 views

Periodically getting jQuery “… is not a function” errors [closed]

I've been encountering a strange problem over the last week or 2 in that I keep periodically getting an TypeError: jQuery(...).fullpage is not a function error when trying to run a little script. ...
0
votes
1answer
21 views

jQuery post method in admin menu

I'm trying to use this: jQuery(document).ready(function(){ jQuery("#button").click(function(){ jQuery.post("post_file.php") }); }); on this: ...
0
votes
1answer
44 views

Adding a slide toggle on Wordpress

I'm trying to create a sliding toggle to show and hide a box that I'm creating but I'm not having success on it, does Wordpress have any required special thing to make it work? here's my code and ...
0
votes
0answers
52 views

Display wordpress post's in popup?

I am developing a wordpress site with some blogs.Each blog post will have an READ MORE link.when clicking the READ MORE it should open a popup box with that post contents. Can any one suggest me on ...
0
votes
0answers
39 views

extra code in <head> - blank jquery function

I recently noticed that in the of my website (goinspire.com), there are 2 occurrences of the following code: <script>jQuery(function(){});</script> It looks like a script with a blank ...
-1
votes
1answer
100 views

Uncaught TypeError: number is not a function [closed]

<script type="text/javascript" charset="utf8"> jQuery('img').each( function($) { var mySrc = $(this).attr( "src" ); $(this).before( '<a href="' + mySrc + '" class="link">' ); ...
0
votes
0answers
95 views

Radio buttons value not calculated and div not displayed on button click event

I have a list of index and in each index I have 3 fields indexno, indexname and parts. parts is parent and has sub fields partno, partname and partvalue. Each part is displayed as a radio button. ...
0
votes
1answer
61 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
74 views

Social Media button function using jquery

I've wrote a fairly small function that I'm trying to get working. At the moment the jquery doesn't seem to have any effect on the html selected. I've checked the "inspect element" all file's are been ...
0
votes
0answers
24 views

How can I correctly POST to a Wordpress page?

I'm creating a timetable page for a community-run bus route planner/timetable site, and I'm currently coding a page where the user can select their desired bus from a drop-down list, and then PHP will ...
0
votes
1answer
39 views

Script work on non logged in user but not work for logged in user?

I am currently working with jquery and wordpress plugin. jQuery(document).ready(function($) { $('.btn').click(function(){ alert("hello world"); }); }); This code working very well ...
0
votes
0answers
52 views

How to e.preventDefault() on an admin post page for a submit() action?

Lately, I have had a problem with a seemeingly simple task of preventing a form submission an a post admin page in WP. In a nutshell: I created a meta box on an admin custom-post page that includes ...
0
votes
0answers
151 views

admin-ajax.php not working after wordpress 4 update

n WordPress 3.9.2 access to admin-ajax was working for non loggedin users. When I upgraded the script stop working. I have the following code in functions.php function theme_name_scripts() { ...
0
votes
1answer
54 views

How to include my Ajax calls in one function instead of calling different ones every time?

I'm doing something like this to refresh a widget: add_action( 'admin_footer', 'my_action_javascript' ); // Write our JS below here function my_action_javascript() { ?> <script ...