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

2
votes
2answers
3k views

How do I “unhook” / de-register jQuery so that it's not called as part of wp_footer();?

I need to "unhook" jQuery from my wp_footer() ... it's being called automatically and I'm looking for something I can add to functions.php which prevents it from being called a second time in the ...
2
votes
1answer
696 views

jQuery Image Annotation

I'm bascially looking for something that lets visitors to my page comment on photos. When they hover over the photo the image notes will load. Best would be if those notes would also show up in the ...
2
votes
3answers
438 views

validate a metabox based on the category that is selected

Ok Let's say I have 2 Categories. If a user select category A, they have to fill in metabox A and similarly for category B, it's metabox B. So my question is, I want to do a validate check, whereby if ...
0
votes
2answers
845 views

Call a Simple JQuery from within Flash

This is hopefully really simple for someone but I'm a newbie and trying to learn how to connect to JQuery's on my site from an embedded Flash swf. I'm attempting to do a simple example first to test ...
-1
votes
1answer
1k views

Using WP Ajax and jQuery to process multiple forms on the same page?

I'm using the following to make ajax calls: wp_enqueue_script( 'my-ajax-request', TAF_PLUGIN_URL . 'js/ajaxcf.js', array( 'jquery' ) ); wp_localize_script( 'my-ajax-request', 'MyAjax', array( ...
2
votes
1answer
939 views

jQuery Tree View and wp_list_pages

I'm looking to use the jQuery TreeView script on wp_list_pages to get a nice collapsable-tree effect going. The script requires that I add some classes to the list elements such as: <ul id="red" ...
1
vote
1answer
4k views

Implementing lazy loading in homepage posts instead of pagination

I have lots of posts in my website. I have used default pagination function for paging the post list in homepage. But I wanted to implement lazy loading instead of pagination just like in twitter. I ...
0
votes
2answers
216 views

Default scripts added to each admin page

Whilst jQuery is available on all admin pages, only selected jQuery UI libraries are added for certain pages (i.e. it is different for each admin page). I am trying to find out where the jQuery UI ...
0
votes
1answer
161 views

loading javascript after jquery is loaded

I want to load some javascript for the front page of my theme after jquery and jquery ui is loaded. what would be the hook to use? I am aware of the functions.php and I have used is_front_page(). ...
0
votes
3answers
2k views

wp_enqueue_script and wp_register_script in theme not working

I am trying to use a self written script for the jQuery library in my self-made theme, but it's not working. When I simply use script-tags, everything is alright. So it has to be something with ...
1
vote
1answer
517 views

Update Loop with Form

I have a photo gallery I'm developing using WP as a means for content management. I'm relying heavily on some jQuery plugins to manage the UI styling and manipulation (via sorting). My problem is ...
1
vote
1answer
5k views

How to create a load more post entries like Twitter?

Hey guys, last days i have been trying to figure out how to do that. As read on http://net.tutsplus.com/tutorials/javascript-ajax/create-a-twitter-like-load-more-widget/ but inside wordpress. And i ...
1
vote
2answers
672 views

Auto-detect javascript errors and warn theme user

This may sound simple, but it's not :) What I want, and most likely many theme developers do (themes that use javascript / jquery), is to warn the theme user that his site has javascript errors. In ...
2
votes
1answer
3k views

Timepicker-addon doesn't show - Datepicker works fine?

UPDATE It seems that it might be a problem with the, $("#opening_time").datetimepicker(); $("#opening_time_end").timepicker(); $("#closing_time_end").timepicker(); If there is a ...
0
votes
1answer
509 views

Display custom-post type based on the Title matching the current selected value

Ok quite a complex thing I'm trying to do here, and I'm a bit unsure how I will do it with wordpress, but I'm hoping some genius out there can help. I'm basically creating some comparison ...
0
votes
2answers
456 views

Dynamically output a class to an anchor tag depending on what tag is chosen

Not sure if this is possible, but what Id like to do is have the ability to output/add a class to an anchor tag depending on what tag I choose when creating the post. My reasoning behind this is to ...
3
votes
2answers
2k views

Horizontal scroller with post_thumbnail's

Attempting to create a horizontal scroller using post_thumbnail's. I've made a filterable portfolio section using this tutorial: http://www.wearepixel8.com/blog/filterable-portfolio but my attempts ...
1
vote
2answers
1k views

Implementing FancyBox

I am trying to implement fancybox into WP without using a plugin. I did some research and went over few examples but there is still an issue. Any help would be greatly appreciated. Here's the code: ...
0
votes
1answer
733 views

Extend the twentyten dropdown menu with jQuery with a delay onmouseout

I would like to extend the pure CSS dropdown menu of the standard twentyten theme in order to accomodate a small delay on hiding the submenu onmouseout. Is there any way we could do this using ...
0
votes
1answer
247 views

making a plugin that moves other plugins wp_head actions to wp_footer

I am grappling with implimenting jQm on wordpress and have hit the obstacle that most plugins dont work on jQm ajax loaded pages. However, taking the example of the sharethis plugin, I have found ...
0
votes
4answers
534 views

How to fix my old theme so it loads jQuery properly

I have an older theme that is loading jQuery 'manually', and this conflicts with all plugins that are trying to use jQuery. The following lines are included in the theme header: <script ...
4
votes
1answer
2k views

Make jQuery library load before plugin files

I am using a few jQuery plugins such as validate.js, but they all load BEFORE the Jquery library which is loaded automatically by WordPress and my theme. I need the plugins to load after - so is ...
1
vote
1answer
484 views

adding google event tracking to links in posts

I am trying to add outbound link tracking for links within my posts. But only for links that do not have an img as a child. My code is below but does not add my class to any links in my posts: ...
1
vote
1answer
343 views

Firebug : Problem with jQuery in WordPress admin panel

I'm trying to make my first plugin and I have a problem with firebug. When I use firebug console in WP Admin Panel doesn´t work correctly. For example when I use the selector $('#wpbody') the console ...
3
votes
2answers
519 views

Why do we include jQuery in the header?

I was told not to mess with the core files. Also, I don't want jQuery to load on every single page.
0
votes
1answer
597 views

Adding a jQuery modal dialog to the admin area

I am writing a plugin for a customer and I need to use lightbox/thickbox/fancybox/etc in my admin piece. No matter what jquery plugin I use, and I'm using wp_enqueue_style and wp_enqueue_script, ...
0
votes
1answer
535 views

Any good lightbox-like option that works in WP 3.2.1?

I'm having problems finding a "plugin" that will help me display some of my images in a nice way such as prettyPhoto, Lightbox etc. As I'm already using the jQuery library, I'd prefer a plugin that ...
0
votes
1answer
75 views

WordPress Subpages Fancybox Trouble

I have a website that I'm converting over from a static html site to WordPress. I got almost everthing done, but I'm having trouble with there "about us" page. When you click on their profile it ...
0
votes
1answer
1k views

jquery: getting contents of #content field on post page

I managed to get the #content field html with this jquery call: jQuery("#content").html() This seems to be failing though on "Add New Post" pages. Any tips on how to get the contents of the ...
0
votes
1answer
236 views

Determine image height within Fancybox

I have single.php rendered within Fancybox. For the purpose of resizing an image within single.php I am obtaining the image height in javascript using: var contentheight = ...
1
vote
1answer
260 views

Mixing Regular Javascript With jQuery in a Plugin

Sorry for a simple question. I'm learning about plugins. I've got some javascript that I want to put in a jQuery file in my plugin. (I've got jQuery and the scripts enqueued, and working fine). ...
0
votes
2answers
404 views

wp_enqueue_script calling jQuery at different times for different browsers?

This makes no sense, but in looking at my view source across browsers, wp_localize_script() is inserting tags as expected for all browsers other than IE7,8,9. The script tag is simply not there in ...
0
votes
1answer
1k views

registering new jQuery after wp_deregister_script() not working

I have the following in my functions.php and it doesn't seem to load jQuery. If I remove the wp_deregister_script() line it appears to load the wordpress included jQuery and not the one I have ...
3
votes
3answers
11k views

How to add a javascript snippet to the footer that requires jQuery

I know I can add a script file to the footer of wordpress that requires jquery using this code: <?php function my_scripts_method() { // register your script location, dependencies and version ...
0
votes
1answer
711 views

how to json_encode(); the Loop content so that the encoded array is [“0”:content, “1”:content]

<?php $dVC=array(); query_posts('meta_key=featuredt&posts_per_page=5'); if (have_posts()) : while (have_posts()) : the_post(); $dVC []= $post->post_content;?> <div ...
0
votes
2answers
316 views

Which jQuery packages are included in Wordpress 3.1.2?

I haven't found a document, except this one, that says which jQuery packages are included by wordpress. Thus, I don't know if I should add jQuery to my header.php or not. The link above, doesn't ...
3
votes
1answer
1k views

Custom function to rearrange attachments when creating posts – Almost there

I'm having some trouble with a custom thing I'm doing. I've implented a custom image uploader into a metabox in a custom post type. Now I'm trying to work out a way that will let me reorder the ...
1
vote
1answer
2k views

How I got jQuery Quicksand working with WordPress?

I have been tryin to make this plugin work but I failed badly. I have the code like below: The portfolio-terms is filtering buttons: <div id="portfolio-terms"> ...
1
vote
1answer
421 views

Error with Image Slide plug-in/ s3slider in WP

I'm using Wordpress Version 2.8 (Can't upgrade where I work); and I used 'Emerald Stretch' theme as the basic bone structure of what I'm developing. (Which ultimately will be a responsive wordpress ...
0
votes
1answer
587 views

Disable collapse of admin meta boxes

I have been attempting to disable the ability to collapse admin meta boxes. By the looks of it WordPress creates this functionality in postbox.js /wp-admin/js/ but I have been unable to find a hook or ...
0
votes
1answer
499 views

AJAX calendar navigation returns -1

I am trying to pass $month and $year values via AJAX when previous/next links are clicked, but all I am getting is a -1 where the content should be. My JavaScript functions and AJAX call is located in ...
1
vote
1answer
697 views

Best Wordpress Slider Plugin for HTML and Images

I want a simple to use slider for the home page of the website I have played around with a bunch of plugins and nothing was really suiting my needs or easy to deal with. I would rather not spend the ...
0
votes
1answer
93 views

Wp theme Jquery conflict with plugins that use jquery

I have a jquery conflict with one of the websites I administrate. reffering to this link:( http://www.terraworldltd.com/pc/business/2056.html ), the product page consist of fancy zoom that when the ...
0
votes
1answer
440 views

jquery bookmark links

I got social bookmarks in jQuery, but how can I get post titles and permalinks in this snippet? If I put <?php echo get_permalink(); ?> in there, the whole site gets blank. ...
0
votes
3answers
305 views

Jquery not working

(function($) { $(document).ready(function(){ /*$('body').css('position','relative'); $('body').animate({'left':'-9999px'},3000);*/ alert('hello'); }); }(jQuery)); ...
1
vote
1answer
2k views

Trying to remove duplicate jquery scripts

I've added this <?php wp_enqueue_script("jquery"); ?> before <?php wp_head(); ?> so that I can just use the wordpress included jquery script, and deleted the extra jquery script I've ...
5
votes
2answers
3k views

Using the WordPress Media Library and returning the Attachment ID rather than URL?

I'm currently using some JS to pop open the WordPress Media Library in a thickbox container and return the URL of a selected image, then display it. window.send_to_editor = function(html) { ...
1
vote
1answer
892 views

Open div inside a custom post-type with Fancybox

I did have a similar problem with this but never managed to find a solution... I have a custom post-type with a number of pages, but what I want to do is grab a particular div from the pages and ...
0
votes
1answer
1k views

How to Run a jQuery Script after a Javascript Script has Finished in WordPress

I've got javascript (a) and jQuery script (b). I need (b) to run after (a) has finished running. I need them to run sequentially. How do I do that? In wp_enqueue_script, I've made (b) dependent on ...
1
vote
1answer
539 views

How can I make this custom menu work?

Can someone share with me the easiest way to convert this to work with wordpress’s 3.0 built in menu support. So far I have the topnav menu working correctly, but I’m having a hard time getting the ...