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
1answer
13 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 ...
-1
votes
0answers
11 views

Uncaught Error: Syntax error, unrecognized expression wp-includes [on hold]

JS error in wp-includes folder WordPress I'm using a plugin "Real 3D FlipBook" to generate photographic books on a given page of the site. I need several books to appear on this page, but appears ...
0
votes
0answers
11 views

Creating post template that auto-loads to 'next post' in category, triggered by embedded video [on hold]

I'm a JavaScript/jQuery beginner interested in the steps required to create the following function within a WordPress site. I'd like to have a list of posts, each of which contain a video embed, that ...
0
votes
1answer
39 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
40 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, ...
0
votes
0answers
6 views

WordPress adds superfluous </p> to qtip2 content. Cause Unexpected token ILLEGAL [on hold]

I’m developing a wordpress plugin using qtip2. Line breaking are not working. When trying to create an in-memory div via a JS code following ...
-1
votes
2answers
70 views

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

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 ...
1
vote
1answer
42 views

Proper way to load a single post via Ajax?

I'm loading single posts via Ajax into a div that I have set up on my index page. Everything is working fine in this regard. I want to use history.js to push/pop the state so if users enter ...
0
votes
4answers
61 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 ...
0
votes
1answer
29 views

Loading multiple slide galleries? [closed]

I'm trying to create a site like this where users can click on a link and load that specific slide gallery. Can this be done with the built-in WordPress galleries? It's important that the client is ...
0
votes
1answer
15 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 ...
0
votes
0answers
15 views

jQuery color picker function on change

So I'm writing a Wordpress plugin that generates a live preview upon changes to a php form using ajax. Everything is working great, but one little issue with jQuery is not quite right. Normally, when ...
0
votes
1answer
23 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
24 views

Displaying contents of a tab

I have been trying to figure out how to accomplish what I need done which I can show here . I had asked this question in StackOverFlow which I got a good answer but I don't know how to implement it i ...
0
votes
0answers
16 views

Failed to Register WordPress Custom User Role via Ajax Submit Form

I edited my WordPress site custom registration page. I've added 2 new user roles: Employer Agent I renamed default WordPress Subscriber role to Job Seeker. And, this Job Seeker role has all the ...
0
votes
0answers
16 views

Security Plugin Blocks Access to theme folder?

I'm using some jquery to do an ajax request within my theme and it's spitting out a file 404 error even though the file exists. I"m guessing it has something to do with the security plugin. here's ...
0
votes
1answer
25 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
4 views

Admin Categories validation

i am trying to validate user input when adding new category through WP , i use jquery.validate() and validation error appeared successfully , but after pressing add new category , the category is ...
0
votes
0answers
12 views

WooCommerce Consistent Category Product Grid Div Height [migrated]

I have been racking my brain for a while trying to figure out how to have a consistent height on product divs in the WooCommerce category pages. It all boils down to the character length of the name ...
0
votes
0answers
11 views

Disable drag metaboxes, create many functions using js not to work!

when i Disable dragging metaboxes in admin, it seems to make some problems. when i use this code: function disable_drag_metaboxs() { wp_deregister_script('postbox'); } add_action( 'admin_init', ...
0
votes
0answers
48 views

admin-ajax.php taking a really long time to respond?

I'm loading posts via Ajax and I noticed that it's taking on average about 4-5 seconds for the response. Is this normal? Is there anything I can change in my code below to speed things up? I'm not a ...
0
votes
1answer
20 views

How would I get this to work - send to post from thick box

I have the following javascript which talks to about 6 elements. The first three open a thickbox for media upload and what not upon clicking on a specified button, the last three target the input ...
0
votes
1answer
83 views

owl carousel not working after ajax load [duplicate]

i use jquery 1.11 and this code to ajax load wordpress post content in sidebar . everything is good but jquery functions of owl carousel not work and the carousel in post content not showing anything. ...
0
votes
1answer
63 views

Simplest ajax form not working when it should

I am trying to create a very basic ajax call in wp-admin area where the form sends the Post ID. This value will be used to update_post_meta(). Simply stuff right? Well, I've been on this task all ...
1
vote
1answer
55 views

Basic ajax call in WordPress

My aim is to create the most simple ajax call in WordPress, but I can't get my head around how it works. JS File: jQuery("#votepostform").submit(function() { var url = "file.php"; // php script ...
0
votes
1answer
52 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
33 views

CSS & Javascript Toolbox won't save code block, no error given

$(document).ready(function () { $("#quantity").keypress(function (e) { var agetdata = $(this).attr("maxlength"); limit_check($(this), agetdata); if (e.which != 8 && ...
0
votes
1answer
43 views

Why are some custom javascript files working but some are not

I added some custom javascript files to my wordpress page. I put them in the funcstions.php like this: wp_register_script('formfunctions', get_template_directory_uri() . '/js/formfunctions.js', ...
0
votes
1answer
74 views

Trying to get single posts to load on the front page via ajax

I posted a similar question about this before but I changed a bit of the code so I figured I'd start a new topic. Below is the setup I currently have to load single posts on the front page. This is ...
0
votes
1answer
52 views

AJAX Success Function using JS substr() fails in WP 4.1 vs 4.0

For years I've set up php ajax calls and responses in my plugins like the following, with js error detection conditions as needed like... if( "<e>" == msg.substr(0, 3) ) { do_something(); } ...
0
votes
1answer
170 views

Loading posts via AJAX in a hidden div with updated URL?

I'm using the code below to asynchronously load posts on the same index page via AJAX. I would like to be able to update the URL as well but am unsure how I can go about adding that to what I ...
0
votes
0answers
13 views

jquery errors on freshly installed wordpress online

how can i fix this error on my freshly installed wordpress? TypeError: e.attrHooks is undefined TypeError: $(...).on is not a function TypeError: this.on is not a function site address: ...
1
vote
0answers
12 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
votes
0answers
18 views

Why does the google map display in a different place to the grey load area? WP jquery load issue

The google map loads, but doesn't display where the grey load box is, but lower down the page (around the footer area). I believe this is a Jquery load issue or a conflict with another plugin (the ...
0
votes
3answers
38 views

Enqueue core jQuery in the footer?

I have this in my functions.php file and I can't get jQuery to load in the footer. The includes file loads in the footer fine, though. What else do I need to do? function starter_scripts() { ...
0
votes
1answer
37 views

Using wp_localize_script to store the template url into a variable to use in JS

I was trying to store the template url (bloginfo(template_url);) into a variable so I could use it in my JavaScript. However, I realized this wasn't possible and someone alerted me to ...
0
votes
1answer
17 views

Wordpress version for this autocomplete jQuery code

The following code works well but does not work in wordpress please assist: $(document).ready(function () { var ac_config = { source: "ajax.php", select: function (event, ui) { ...
0
votes
0answers
20 views

Storing the template url in a variable in JS file?

I am trying to store the image path url into a variable. However, I'm having a bit of trouble as nothing outputs. Can someone help me out? Or is there a more elegant way of doing this? ...
0
votes
0answers
21 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
35 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
46 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 ...
0
votes
2answers
69 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
51 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
71 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
91 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
41 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
90 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
81 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
32 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 ...
2
votes
1answer
51 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, ) ); ...