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

1
vote
1answer
1k views

Disable Jquery UI post tabs

Hey all, I'm using Jquery UI tabs with the WordPress Post Tabs plugin and it works like a charm. However, I'd like to auto disable or hide tabs that do not have any data. I've worked with Jquery quite ...
1
vote
1answer
458 views

Toggle Sidebar Display

I'm developing a WordPress theme that allows users to toggle the visibility of the sidebars using Javascript in the same way that wikis allow users to show or hide a table of contents. When a user ...
0
votes
1answer
364 views

Wordpress 3.1 makes my drop down menu dissapear, jquery dont work

Please help, After i upgrade to WP 3.1 just now, all my site menus not working, no drop down menu, and the jquery countdown not working. please help me.
1
vote
1answer
2k views

php ajax problem - weird 301 responses!

hey guys, I really really need your help. I have just no idea why that happens. I'm trying to load a wordpress page with the jquery $ajax method. However my browser is crashing all the time when I ...
2
votes
1answer
593 views

WordPress 3.1 not compatible with jQuery Mobile?

I recently updated to WordPress 3.1, and with that update, something very interesting happened. Links became unclickable -- clicking on any link would literally result in nothing happening. ...
0
votes
1answer
354 views

How to add drag and drop functionalities to a div inside option panel

Hi to all it's a few days that I'm trying to add some new functions to my theme option-panel, you can see my questions here: How to add an export function to a custom Option Theme Page Add a preview ...
0
votes
2answers
516 views

Wordpress: Preload next post images

As the title says, i would like a nice bit of coding to stick in my functions that pre-loads any images that are attached to the next post. This means that whilst my users are browsing, they page ...
0
votes
1answer
252 views

Making jQuery-based galleries with Wordpress without a plugin?

I've been racking my brains for the best way to create a simple gallery in Wordpress without relying on a plugin like NextGen gallery, and was thinking a shortcode would be a good way combined with ...
0
votes
2answers
576 views

Loading a newer version of jQuery within WordPress

I've read about the WP enqueue_script() function, but if I wanted to use a newer version of jQuery than what my WP installation is using, can I load it through this & WP will use the latest ...
0
votes
3answers
619 views

sliding/fading header plugin or approach suggestion

i need advice in implementing rotating header (has fade or slide effect) in my theme. I'm building a theme based on Thematic and I'm looking for a good approach on how to implement the header. I have ...
0
votes
1answer
932 views

Calling multiple scripts using wp_enqueue_script

I'm trying to call multiple JQuery scripts using wp_enqueue_script. The call to JQuery works perfectly but the second call to cufon doesn't. I'm not a php or javascript expert - could anyone lend a ...
2
votes
3answers
1k views

How do I activate jQuery/script on demand?

I am trying to use jQuery to display the comment-section of my Wordpress-pages, but without requiring that jQuery be present on all pages that allows comments. Basically, I need the following: A ...
0
votes
1answer
353 views

jQuery slider widget similar to cnet.com

I'm building a WP theme that requires a splash graphic "slider" widget (similar to what you see on cnet.com). I'd like to build one myself, mainly so I can have full control over the bits, but if ...
1
vote
3answers
2k views

jquery UI in wordpress admin

Does anyone have experience with using the jQuery UI plugins in the Wordpress admin area? I´ve been trying to use the datepicker functionality in jQuery UI, but its conflicting with the built- in ...
3
votes
2answers
6k views

Convert jQuery Datepicker Format to SQL Date Format

I set the jQuery Datepicker format to D d.m. displayed as Th 3.3. for a custom meta field that I want to use to sort posts. In SQL, the custom meta field is saved as D d.m. I would like to display ...
1
vote
1answer
272 views

modifying a template and adding jQuery to it

There is a page template called "All Bookmarks" for displaying all links grouped by category. I want to modify it 2 ways: each category of links should be collapsible/expandable by clicking on the ...
0
votes
1answer
2k views

How to deal with different jQuery versions?

For example If you have a plugin on a site that uses jQuery 1.5.x and want to create a new plugin by implementing a script which uses an older version of jQuery, for example 1.3.x or 1.4.x. I know it ...
0
votes
1answer
702 views

Weird jquery problem when upgrade to Wordpress 3.1

After installed Wordpress 3.1, a jquery plugin selectbox i'm using not work 100 percent any more I use this plugin in wordpress backend to replace my <select></select> with custom html ...
1
vote
1answer
237 views

WP 3.1 upgrade breaks AutoFocus+ theme

I run WP for my photoblog ShutterScape using the awesome theme AutoFocus+. Recently, I upgraded to 3.1 and now, it refuses to show the featured images in the individual post pages. I am suspecting a ...
1
vote
2answers
1k views

wordpress site | All-in-one-cufon IE Issue

I have a site where i'm using the All-In-One Cufon (Wordpress Plugin), but having some issues getting it to render properly in IE. The website: [removed] The Problem: It works fine so far in Firefox ...
6
votes
1answer
2k views

How can I fetch loop of post titles via AJAX?

I have a list of the most recent post titles in sidebar.php. Here is an example of how that code looks: <?php $args = array('posts_per_page' => 20); ?> <?php $sidebar = new ...
1
vote
2answers
351 views

Is it worth updating WP admin to jQuery 1.5?

I read that jQuery 1.5 has just been released. Do you think that replacing version 1.4.2 with this new release is worth in terms of pure performance (on the admin side because my current theme does ...
0
votes
2answers
306 views

jQuery UI & Admin (Calendar)

Am I smoking crack or why wouldn't this work? :/ This all seems pretty straightforward: function admin_head() { ?> <link type="text/css" rel="stylesheet" href="<?php ...
0
votes
1answer
455 views

Run a jquery script on on a certain template page

All I want to do is basically this: wp_register_script( 'jquery_zebra', get_bloginfo('stylesheet_directory') . '/library/scripts/jquery.zebra.js', array('jquery')); wp_register_style( ...
2
votes
1answer
189 views

Prevent five different copies of jquery from being included on every page

Many wordpress theme, plugin, and widget developers seem to think that the only way to use jquery on the page is to include their own copy. On some pages of the site I'm developing, there are as many ...
2
votes
2answers
2k views

How to delete post attachments when jQuery is used with a click event on the delete link

I think I'm on the right track with what I need to do, at least for doing one of the ways it could be done. I'm not really sure though, I could be way off for all I know. This is part of the code I ...
0
votes
1answer
662 views

How to best create a jQuery Slider to display a native wordpress gallery?

It seems there must be a plugin for this, but I can't find it. I'd like to enable a jQuery slider in a post, using the images I've added to the gallery for that post. Does anyone know of a plugin? ...
0
votes
2answers
527 views

Having trouble setting / modifying cookies

I'm working on the admin interface for a plugin I'm developing, and it involves collapsible layouts. I want the state of the layout to be remembered when the page is refreshed, so I'm trying to use ...
0
votes
1answer
394 views

Problems with jQuery and is_admin()

I've created a plugin. In this plugin I have a function that will display some data. In this function I use is_admin() to determine if the function is being called from the backend, because then I can ...
1
vote
3answers
514 views

How to load default scripts included with WordPress correctly?

I want to know the correct way to load existing scripts in wp-includes/js/jquery/ Example I want to load jQuery UI Tabs What I have done for now function sample_exists_code() { echo '<script ...
1
vote
1answer
512 views

Plugin admin panel JavaScript Broken

I'm trying to implement this plugin on my live wordpress instilation: http://wordpress.org/extend/plugins/frontpage-slideshow/ I wouldn't usually ask a question about a plugin directly but this ...
1
vote
1answer
1k views

Load created php file data via ajax

Ive been trying to do this for a long time here... First of all, im working with Buddypress latest ver. under WP latest ver. What i want to do, is i want to understand how to call content within a ...
2
votes
1answer
1k views

Custom post type with file upload - need to “set as field” instead of “send to editor”

I've created a custom post type. It requires a file to be uploaded. I found the following tutorial which I've successfully adapted to do what I need with one exception: ...
0
votes
1answer
140 views

JS behavior differs depending on page tree

I'm a developer for a very large real estate plugin and I'm having a lot of trouble with one of our agent sites: The init methods used to initialize ajax functionality are called using a ...
0
votes
1answer
520 views

Ajax, Permalinks and post_thumbnail

As i'm new to AJAX, i'm still learning a lot and have learned a lot over the past weeks. I do need some more assistance on an AJAX issue though: I'm using the following code to display ...
0
votes
1answer
343 views

jQuery forms & updating info

I'm attempting add some ajax to an existing script, all goes well for the first submit, but subsequent ones are not working as expected. add_action('wp_head', 'my_special_action_javascript'); ...
2
votes
1answer
1k views

How to get Ajax into a theme - without writing a plugin?

Okay, I'm starting out with some AJAX stuff in a wordpress theme 1) I'm building a child theme OFF the thematic framework 2) My child theme has a header.php, index.php, functions.php and style.css ...
0
votes
1answer
509 views

Get cat parameter from admin-ajax

I have a plugin that restricts the categories users can view/edit in the admin. All works fine in WordPress 3.0.1, but as I started testing 3.1 I noticed that the category filter, which is AJAX, ...
0
votes
1answer
1k views

Admin-ajax.php appending a status code to ajax response

I'm writing a plugin that uses Ajax (jQuery with form plugin) via a form submission and the php function returns a JSON response. add_action( 'wp_ajax_bubbly-upload', 'bubbly_upload_submit' ); ...
8
votes
1answer
3k views

How to manage ajax calls and JSON in wordpress

I have a custom post type that i want to access through jQuery - preferably using JSON. So first things first. creating a function that returns/echos json is easy enough, but how would I access it ...
0
votes
1answer
309 views

How to move featured image to the top of the list?

I have been working on using featured image to create a list of items on the right column here: http://www.julianamaeberger.com/soma/news/ The current featured image is now being given a class of ...
0
votes
1answer
5k views

Loading dynamic content with AJAX breaking jQuery

I'm creating a theme that uses only the homepage. When a button is clicked, the content for that section is loaded into a div on the homepage via AJAX (script below). $.ajaxSetup ({ cache: ...
1
vote
1answer
610 views

Controlling Taxonomy Category listings to hide and unhide specifics

I have a vertical menu using the superfish script that shows categories in a custom 'productcategory' taxonomy. This menu has multiple levels, and is hierarchical.At the bottom of each branch of the ...
-2
votes
2answers
253 views

Jquery based image accordian plugin

I found a image accorian menu plugin based on mootools farework. Please suggest if any based on jquery framework.
0
votes
1answer
708 views

need jquery help

i have a form which is displayed after every post, so i coded it in single.php, but the form is too long so i thought of putting it in jquery section, where if the user wants then he/she can click on ...
1
vote
2answers
372 views

Fancy-box Esay wordpress plugin fails to work on Multilingual site

I have a multi lingual site. On the site I want to display youtube movies using fancybox (or any other equivalent solution) The plugin is installed and set. When checked on the He version - all works ...
2
votes
1answer
874 views

Querystring data gets truncated

When I check "view source > frame info" on the window produced by the jQuery code below, it cuts off the querystring at the &type=image. I'm url encoding the ampersands properly, right? Address: ...
1
vote
5answers
273 views

What do I need jQuery for?

What do you think of killing jQuery in the public facing WP site? Isn't it useless and making for slower page loading? What's the best way to get rid of it?
1
vote
1answer
344 views

combining js scripts from a js newb [closed]

I've got a small .js file on my wp site where I have been adding in all of my small js scripts. It works perfectly, but I am stuck trying to figure out how to add in another script. So far jslint does ...
0
votes
2answers
910 views

How to wp_enqueue_script jQuery inside a Plugin

I would like to use jQuery in my Wordpress plugin. I'm trying to load the jquery library using the enqueue script but its throwing an error. Error: $ is not a function Here's the code snippet that's ...