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
72 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
231 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
252 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
403 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
9k 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
691 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
315 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
417 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
558 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
483 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
679 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
90 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
436 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
304 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
861 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
533 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 ...
0
votes
2answers
1k views

How to wrap posts into divs?

Does anyone know how I can turn this: <div id="mySlides"> <?php query_posts('showposts=4&cat=11'); ?> <?php if (have_posts()) : ?> <?php while ...
1
vote
1answer
108 views

Googles jQuery: Are There Avantages to Using It?

Are there any good reasons to pull Google's jQuery from their servers as opposed to using the one included with Wordpress? I'm confused as to why I might want to use Google's library. Doesn't ...
1
vote
2answers
547 views

Best way to include jQuery and fire with script at bottom of container

I'm going to be using a jQuery slider on my homepage only (not a WP plugin, but a third party). What I'd like to do is include jQuery, the plugin's jQuery script using a .js file, then include the ...
0
votes
1answer
1k views

How do I remove WordPress Custom Menus hover event and replace it with jQuery onclick?

I am using the WordPress (Appearance > Menus) feature to create a custom navigation menu. I created a menu item that has a dropdown and would like to activate the dropdown menu with a click rather ...
0
votes
3answers
1k views

wp_enqueue doesn't work

Some of you might know that I've been really struggling with trying to enqueue Javascript to my Wordpress theme and I just can't get it to work. I need to get this done somehow. I will keep this ...
0
votes
1answer
578 views

Yoast SEO breaking media upload

I have a very simple site that I've modified a very small amount. After installing the Yoast SEO plugin I found that it broke the in post media attach/upload. I'm about 80% sure it's related to Jquery ...
1
vote
4answers
364 views

Wordpress Ajax not function as I expect… what's wrong?

In functions.php I have: function testajax() { echo "test"; exit; } add_action('wp_ajax_testthisajax', 'testajax'); add_action('wp_ajax_nopriv_testthisajax', 'testajax'); In scripts.js I have: ...
0
votes
1answer
73 views

should i be checking for jquery before enqueing it in a plugin

At the start of a typical plugin which uses jquery I have something like the following wp_deregister_script('jquery'); wp_register_script('jquery', ...
0
votes
1answer
932 views

Having problems loading Jquery in functions.php

I'm trying to add some Jquery scripts to my Wordpress site, and unfortunately I cannot link you to the site as I'm working locally. It seems that the Jquery file is being loaded, as well as the ...
0
votes
1answer
3k views

How to save Uploaded image in custom option panel?

I'm trying to add a custom option panel to a new template following a tutorial found on NetTuts. I saved all the code for the option panel inside a file called optionpanel.php (LoL) and everything is ...
-1
votes
1answer
365 views

I need a Pop up with description when i click an image

i need a pop up with description of an image when i click that image. How can this be done? Is there any plugin in wordpress that can do this?
2
votes
3answers
3k views

Check if jquery library exist

How to check if jQuery library exist in head tags? <head> <script type="javascript/text" src="http://code.jquery.com/jquery-1.6.2.js"></script> </head> and if not exist how ...
0
votes
2answers
4k views

Jquery NoConflict Problem

i'm creating a wordpress theme and i am utilizing some scripts that use jQuery. It was working fine, until i enabled a particular plugin, named 'Paid Downloads'. This actually made all of jquery ...
0
votes
2answers
3k views

Properly embed javascript into WP (using function.php) - doesn't work?

It seems that my contact form's ajax javascript and the custom.js that I'm using for my drop-down navigation are interfering with each other. The contact form's ajax fuction will only work properly ...
0
votes
1answer
181 views

Using jquery and javascript in Wordpress

After trying for many many days without any improvement, I think I have no other choice but to ask for your help. I have to admit that I don't know much about coding, but I've tried various tutorials, ...
0
votes
5answers
4k views

Simple text and image slider

I've been looking for a slider that can slide whatever kind of content that I want to enter. I tried out various Wordpress plugins, but most of them only can slide Wordpress posts or images only with ...
0
votes
1answer
990 views

Using jQuery toggle() in WordPress post to show/hide Tweet button?

What is the appropriate way to use jQuery toggle() function in a WordPress post to show/hide a Twitter "Tweet" button? The problem I am encountering is when I put the code in my content-post.php, the ...
1
vote
2answers
348 views

Include jQuery plugin in Wordpress

Wordpress already comes with jQuery. But what if I want to use a jQuery plugin on the entire blog? What's the best way to include on the entire site? And what if I only want to include it on one ...
1
vote
0answers
516 views

Infinite Scroll deactivates Fancybox after loading second page [closed]

I'm using FancyBox and Infinite Scroll on this site: http://www.davidgoltz.de/2011/blog-page/ Everything works nice but after loading the second page (while scrolling down), the fancybox on the ...
-1
votes
1answer
352 views

jQuery cycle and WordPress: Captions, buttons, oh my

I'm attempting to use jQuery cycle to create a rotator on my blog (which will be used going forward on all other blogs) like the following: http://www.pbs.org/teachers <div id="feature-well"> ...
1
vote
0answers
92 views

Bug: Trying to open jQuery accordeon with category-ID [closed]

I created this little code here to open a category-list-accordeon when a specific post is opened. This is the code I made for it: http://pastebin.com/vskC7Hsi This works well. Every accordeon-tab has ...
0
votes
1answer
730 views

jQuery tabs plugin with callback to fetch data

I want to use tabs plugin and load tab contents using ajax. The problem is: the plugin requires a solid .php file to be specified in href e.g. <li><a href="ajax/content3-slow.php">Tab 3 ...
-1
votes
1answer
207 views

Jquery in IE, fully messed up

I am using the nivo slider in one of my website, the slider looks perfect in Firefox, but in IE 7, 8 its height is increased upto 1006px, the slider works, but the height has increased a lot, I have ...
1
vote
1answer
1k views

How do I pass WordPress's get_bloginfo('siteurl') to Jquery?

I'm guessing this is a really dumb question, but I'm far more familiar with PHP/WordPress and I'm just getting started with jQuery so I'm not even sure what to search on. Is there a way to pass the ...
0
votes
1answer
991 views

Error jQuery(domChunk).live is not a function

I'm getting this error in FireFox: Error: jQuery(domChunk).live is not a function Source File: http://www.bradford.nhs.uk/wp-includes/js/thickbox/thickbox.js?ver=3.1-20110528 Line: 26 This is the ...
0
votes
1answer
505 views

Is there a function to list all uploaded images? How can I add one?

Is there a PHP function that will return an array of all of my uploaded images? Or, failing that, how bout just my uploaded files? The end goal is to display a slideshow on my homepage: have it ...
1
vote
2answers
1k views

Jquery conflict

I have been trying and trying to fix jquery issues. i have in my header lots of jquery. I use it for slider and other things that are built into this premade theme. I am unable to add anything that ...