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

3
votes
1answer
608 views

Extend 3.5 media uploader plugin to change button name

I have followed a tutorial on how to upload images using Wordpress' 3.5 media uploader. All is well. I would just like to change the text of the actual upload button "Insert Into Post" to something ...
0
votes
0answers
83 views

Include other parameters in permalinks for better management of browser history

In single.php, I have the following items that I manage (create, update, hide) with jquery/ajax: a <select> tag in which I return all website categories. a second <select> tag in which I ...
3
votes
1answer
233 views

Hacking TinyMCE for better usability (shortcodes and html)

I'm looking for some theme or plugin examples that showcase ways in which to enhance the usability of editing shortcodes and/or custom html objects that have been inserted into the editor. I know ...
1
vote
1answer
612 views

WP_Query with ajax handler returns the same posts

I have a problem that is getting me bald atm. I have a ajax call that handles a loop that handles some querys and returns posts for me. So far so good, but the first time the user sees the page we ...
0
votes
1answer
156 views

jQuery AJAX call not executing in Plugin

I've been working on a class for my free plugins that outputs a "Donate" form. The "No thanks" dismissal link hides the form and runs an AJAX call to update a WP Option keeping track of the ...
1
vote
1answer
135 views

Unwanted content in website title

I use "anythingslider" jquery plugin to animate some html content in my wordpress theme. and i use this code in header.php to show title: <title><?php bloginfo('name'); ?> <?php if ( ...
0
votes
1answer
502 views

Problem adding MP3 attachments to a jPlayer playlist

I'm trying to get a post's mp3 attachments working with the jplayer plugin (with playlist addon). I have it working for a set number of attachments, but am failing to find a dynamic solution for any ...
1
vote
1answer
485 views

Showing Author Information and Latest Post by author in lightbox when clicked on the name of the author

I am showing details of all the authors including the avator, Name, Description in my blog. When I click on the OPTIONS TO CONNECT link a lightbox will open and I need to show those details(which I ...
1
vote
1answer
113 views

Category pie diagram meta box in post editing page

I am trying to build a plugin for showing a pie diagram based on the number of those categories which have maximum posts. This diagram is a meta box in post editing page. Here is my source of ...
-1
votes
2answers
579 views

Are you sure popup on Contact Form 7 [closed]

I have a contact form built with Contact Form 7. What I want to do is when the user hits the submit button to throw up a pop up window with a notice asking if their sure they want to submit the form ...
-6
votes
3answers
437 views

Jquery Slider for profile template

I want to show the posts under a category in my page.The first 5 posts should be shown when the page loads and When the user clicks the next button/link next 5 posts should be shown. Currently I show ...
0
votes
1answer
80 views

Create a short code that inserts js

Note: People are assuming this question is already answered when in fact it is no where close to being the right answer. I have created tons of short codes, How ever I am using Jquery plugin TOC and ...
0
votes
1answer
176 views

WordPress Theme - jQuery JavaScript Library Issue

I am having some issues with a couple of plugins which use jQuery/JS i.e. cookie control and a picasa photo gallery. The theme I am using is quite basic and comes with no sliders etc with moving ...
1
vote
1answer
1k views

'jQuery is not defined Error' appearing in load-scripts.php

I'm writing this question having already found a solution, in order to see whether other people have encountered this problem. I was having a problem on the back end of a site I am building in ...
1
vote
1answer
469 views

Plugin admin page meta_box toggle and order state not saving

I can't get the toggle state and open/close status of meta_boxes on my plugin admin page to be stored. The ajax response is always 0 I'm using meta boxes to hold sections of menu for a plugin. ...
0
votes
1answer
382 views

force jQuery to load in the head

I've written a plugin which uses wp_enqueue_script("jquery"); to load jQuery. I need to load jQuery in the head and not at the bottom of the body. However, I think that this command is overwritten by ...
1
vote
2answers
2k views

Call the content of a page in AJAX in Wordpress

Out of Wordpress, I've made a simple index page wich call the content of 10 other pages thanks to AJAX. Now I need to put this into Wordpress and the AJAX calls don't work at all. I have created the ...
0
votes
1answer
1k views

How to prevent Wordpress from loading the jQuery library at the top of the page

I am developing a site that must be HTTPS secure and Wordpress is loading <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> at the very top of my page, before <html> ...
-1
votes
1answer
153 views

WordPress and jQuery [closed]

I am fairly new to using jQuery in WordPress and I am trying to write jQuery scripts in a separate file. What is the difference between the following two syntaxes of setting up the external file: ...
2
votes
1answer
327 views

How do I rebind event after widget save

I am writing a widget who's form elements have a click event attached to. I bind it using jQuery. However, after clicking save, the bindings gets lost. That is, clicking those elements doesn't ...
0
votes
2answers
2k views

Get selected value with PHP and jQuery

I have form that i'm using to update user profile from front end and i have country select. <form method="post" id="adduser" action="<?php the_permalink(); ?>"> <select id="te" ...
1
vote
2answers
73 views

jQuery breaking my wordpress site

I am including jQuery in my header.php file like this: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script> But when doing this, it breaks my home page ...
1
vote
1answer
631 views

jQuery Ajax() doesn't work when the page is accessed as a WordPress template page

In one file (test_ajax.php) I have a which on change loads another page (registration_form_race_type.php) with a short message via jQuery Ajax(). It works fine when "test_ajax.php" is accessed via its ...
1
vote
1answer
389 views

Move jQuery to the bottom of the page whilst keeping the WordPress jQuery

I wish to move jQuery to the bottom of the page on my theme, to speed up loading times. Previously I was doing this by replacing it with Google's CDN version but I have been told that is a bad thing ...
0
votes
2answers
1k views

Removing jQuery from footer

I am working with HTML5 Blank and I can't seem to get jquery to stop being called in wp_footer(). I have tried adding this to the bottom of my functions file: function ...
0
votes
1answer
290 views

How to setup a popup registeration page in wordpress with function.php

everyone: I wonder if there is existing tutorial on how to create a popup registration page in wordpress by utilizing function.php? or is there another way that can do with it? Thank you!
0
votes
1answer
353 views

JQuery load php - php file without the template

I'm about to start writing a php file that will return a JSON array to be used as a JQuery autocomplete source. I want to create my source.php file that loads without the WordPress template. ...
0
votes
1answer
151 views

Is there some jQuery conflict here?

I'm customizing a wordpress theme called Accordium, and I have decided to add infinite scroll to it using a wordpress plugin called pbd-ajax-load-posts. In the theme, when you click on a post in ...
2
votes
2answers
752 views

Installing jQuery plugin to wordpress theme (Incredible)

Ok so here is the plugin in question I'm trying to integrate it on the homepage of my wordpress theme (incredible bought from themeforest) After reading up on wordpress enqueue script and all that ...
0
votes
1answer
2k views

Override default jquery ui library with newer version

The latest version of jquery ui core fixes a bug that's on my site. The problem is that Wordpress comes with an earlier version. How do I override the default jquery ui core? One solution I've found ...
0
votes
1answer
1k views

Javascript block in Twenty Twelve theme

I am authoring a WP plugin, and I have to generate some JS (jQuery) code in "realtime". It is working fine in general, though I've stuck with one problem with the WP 3.5.1 and its default Twenty ...
0
votes
1answer
360 views

reorder a WP_Query, using a dropdown

I have the following loop used to display posts by category & I would like to to re-order them based on a dropdown selector if (!isset($qry)) $qry = new ...
0
votes
2answers
260 views

jQuery UI inside widget on admin page

I have created a widget that has quite a few settings, and so I am trying to create a tabbed menu (using jQuery UI) inside the widget settings of the admin page. The problem is basically that tabs ...
0
votes
2answers
2k views

Good solution for adding jQuery tabs anywhere within WordPress?

Is there any solution for using jQuery tabs within the native WordPress scripts? If you know of a way to get any method of jQuery tabs working on the frontend and the backend please share your ...
-1
votes
1answer
520 views

best way to communicate between php and jquery/javascript

I have a custom post type "pakket", in which I've put all kinds of data in the taxonomy terms. This custom post type has about 50 items, each with their own values for taxonomy terms. For example: ...
-1
votes
1answer
78 views

jQuery “on” handler does not fire on newly inserted widgets [closed]

I have a jQuery script attached to the widget.php page via an add_action('admin_footer') call. The jQuery executes fine on widget items that were in place when the page loaded. However, on newly ...
0
votes
2answers
45 views

Including Javascript options

For a Wordpress Theme I know javascript files (ending in .js) must be included using wp_enqueue_script in functions.php but how do I include additional javascript code, for example say I need to add ...
3
votes
1answer
584 views

Using Underscore Templates in WordPress

I've noticed that since WP 3.5 that we now have the Backbone.js and Underscore.js libraries included. The new Media Modal uses Underscore templates and I was wondering how would I be able to insert ...
1
vote
1answer
329 views

Ajax pagination works only first and third time

I'm using ajax-based pagination, heres the markup <div id="portfolio-thumbs"> <ul id="portfolio-destaque"> HERE GOES MY LOOP AND CONTENT , some LI's with thumbs and stuff ...
0
votes
1answer
144 views

Thumbnail remove width & height function

I wish that when the browser was resized to below 980px, my images were width 100%. The container of the images already have 100%, the problem is that I'm using wordpress size code for thumbnails: ...
0
votes
1answer
181 views

Weirdness in jQuery supplied with WordPress

I've got a problem with the jQuery supplied with WordPress. The following HTML exhibits this problem: <!DOCTYPE html> <html> <head> <script ...
1
vote
1answer
381 views

How do I get my page to load the jQuery UI Effects library?

I'm using javascript for the first time to do some simple animations on the home page of my website. So far I have added the following to my header.php file (which is only used for my home page), ...
0
votes
1answer
312 views

change the icon of a custom post type in WordPress to use twitter boostrap

Using jquery, the icons of WordPress admin menu have been changed to use the twitter boostrap icons, done such as: jQuery('#icon-themes.icon32').replaceWith('<div style="font-size:22px;" ...
0
votes
2answers
243 views

My jQuery is enqueued properly. So why isn't it working?

I'm just trying to add a simple bit of Show/Hide jQuery to a child theme. $(document).ready(function(){ $("#openbtn").click(function(){ $("#openingtimes").toggle(300); }); }); I've saved the ...
0
votes
1answer
138 views

Showing All the Posts in the Loop

this code here <div class="col"> <?php gab_dynamic_sidebar('Subnews1');?> <?php $postnr = of_get_option('of_wn_nr8') + of_get_option('of_wn_nr8a'); if ...
1
vote
0answers
464 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 ...
0
votes
1answer
137 views

Search results load individual post in slide out div

Hi this is more of a solution and advice question. I want to search my wordpress site and load the search results in a very typical way (unordered list with title, image and excerpt). Upon ...
1
vote
0answers
453 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 ...
0
votes
1answer
2k views

chosen jquery library not loading - is not a function error

I am trying to load the chosen library: http://harvesthq.github.com/chosen/ I am enqueuing a .js file as below: wp_register_script( 'js_custom', plugin_dir_url( __FILE__ ) . 'js/jquery.js', false ); ...
1
vote
3answers
204 views

Plugin jQuery version VS Theme jQuery version: search for best practice

I have built a Wordpress plugin that is based on jQuery and I am using wp_enqueue_script('jquery'); to make it all work. Let say the default version of jQuery loaded by Wordpress is 1.7.2, what ...