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

Custom searchfield autocomplete

I have tried to fire an autocomplete on a customized search field but to no avail. I have used some codes from help sites but I really do not know what I am doing wrong. Nothing happens when I type a ...
0
votes
1answer
13 views

Problem with jQuery in post body?

I have the following code int he post body and it won't run. I can run it from the console just fine, but in the body of the post it won't do anything and doesn't return any kind of error either. ...
0
votes
1answer
36 views

Plugin program: JQuery not working in this plugin

I have been writing a plugin but wanted to add some features to the plugin In this program down JQuery is not working please help me My requirements are check this URL: codelisense.com/wp/about ...
-2
votes
0answers
13 views

Custom search field autocomplete [on hold]

I really need some some help here. I have a custom template on which I have a textbox. What i want is to get facility names from a different table on the same server . the facility names should ...
0
votes
1answer
17 views

How to show/hide a meta box using categories, with a different post type

The following code hides a meta box when certain categories are selected using jquery, in post editor. It works with post as the custom post type. I need it to work with a custom post type called ...
1
vote
1answer
36 views

How do i use this jquery script on a wordpress site?

I've been struggling with trying to set a jquery list file on a wordpress site. This is the script and html in a codepen: http://codepen.io/javve/pen/bBfgD My question is. The examples has html with ...
0
votes
1answer
25 views

Call admin ajax using absolute url? Relative URL breaks (frontend ajax)

Hoping There is an easy way to do this/I am doing something horridly wrong: I'm trying to simply display a list of post titles. When a user clicks on the title it will display that said title's ...
0
votes
0answers
22 views

value not saving in the form when dynamically creating an input

var AppendDivStore = jQuery(".AppendDivStore"); jQuery('<input />').attr( { type: 'text', class: 'PastetheSkillsValuemy'+inc+'', id: 'wpjobus_resume_skills['+inc+'][1]', name: ...
0
votes
0answers
19 views

Create a popup for each post

i need to create a popup for every post that will summarize the post. fist i add the below Js library. <script src="jquery.simplemodal-1.4.4.js"></script> also i created a template page ...
0
votes
1answer
24 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
1answer
36 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
23 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: ...
2
votes
1answer
40 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
22 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
11 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
33 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
11 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, ...
0
votes
0answers
92 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
9 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 ...
0
votes
1answer
18 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
79 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
21 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
1answer
63 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 ...
0
votes
1answer
119 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
64 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
269 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
41 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
30 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
38 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
46 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
28 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
46 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
34 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
70 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
49 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
55 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
130 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
102 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
70 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
75 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
25 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
40 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
53 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
166 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() { ...