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
462 views

wp_enqueuescript won't load in footer even with true value set?

Below is my code for enqueue my scripts and css. I am trying to get the JavaScripts to load in the footer of my site, but when I view source I see them loading in the header. I suppose the "true" ...
1
vote
2answers
2k views

Enqueue jQuery in WordPress

Building my first theme from scratch in Wordpress 3.4.1, I know Wordpress already has the latest version of the JQuery via Google. I have read about issue's if the script is not called properly, so ...
1
vote
0answers
133 views

How does Wordpress handle HTML Tables interaction with jQuery

I have javascript that gets the width of a table and reduces the css fontsize of text within the table until the table width is less then the width of its parent div. The code bellow shows the ...
1
vote
0answers
162 views

Dukapress jQuery(“form.product_update”).livequery is not a function

I have a wordpress site running Seduction theme and Dukapress. Once you add a product and reach the checkout page, the payment and discount button is not clickable. Chrome/Firebug throws the error ...
0
votes
2answers
2k views

WP_enqueue_script() loads them always in wp_footer()?

This is my example code placed in functions.php: function my_init_method() { wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core', false, array('jquery'), false, false); ...
1
vote
2answers
857 views

jQuery in Wordpress - Why is it not working?

I am using this as my starter template: www.html5reset.org/ It's pretty nice, but I believe something is wrong with jQuery in there. In the functions.php it says: // Load jQuery if ( ...
0
votes
2answers
2k views

Getting jQuery AJAX to work in Wordpress (getting -1)

I am trying to figure out how to use jQuery $.ajax() for a project. I setup this test using what I learned from TutsPlus.com. Everything seems to be working correctly except I am getting a -1 ...
0
votes
1answer
525 views

Wordpress Menus - How to add inline styles to UL menus

I've just converted my HTML version of a theme over to Wordpress, and I'm currently converting the dropdown menus over. What WordPress processes: <ul class="dropdown"> <li ...
0
votes
1answer
467 views

How to add custon UI jquery & Fancybox script to WP

I have a javascript that uses jquery objects to do a number of things first it finds images that are in a table adding these to a Fancybox gallery. This gallery has the Helper buttons allowing the ...
0
votes
1answer
502 views

wp_register_script Question

I need to add the following JS to the head, but I don't know how to add the "data-cfasync="false" " by using "wp_register_script" or "wp_enqueue_scripts". Please help!! <script ...
0
votes
2answers
1k views

url - ajax loaded but no JS

I have this url to call the taxonomy.php by pressing the button with the code beneath to show filtered posts: http://myurl/?meta_key=post_views_count&orderby=meta_value&order=ASC This is ...
1
vote
1answer
86 views

Are there any scripts, classes, and/or functions built-in to WP for a plugin to export/import its saved data from wp_options?

In WordPress, are there any supported 'script plugins', Classes, and/or a WordPress function that will allow a plugin to use to export/import its own data from the database to a txt/json file? A way ...
0
votes
2answers
170 views

Would to use AJAX to get an option from the database and use it in a jquery setup or is there an alternative to consider?

I have a slider in my theme. I have a setting in the options which controls whether that slider is set to "slide" or "fade". This slide/fade setting is in the jquery and of course the options setting ...
0
votes
1answer
323 views

Custom Jquery in admin breaks media-upload script

I have this part of code which loads custom version of jquery wp_deregister_script('jquery'); wp_register_script('jquery', ("http://code.jquery.com/jquery-latest.min.js"), false, ''); ...
0
votes
1answer
329 views

problems with jquery external rss feed integration

Iam using an external file (feed_home.php) wich is loaded with AJAX onclick. $(document).ready(function(){ $.ajaxSetup({cache:false}); $("#new a").click(function(){ var ...
1
vote
0answers
715 views

How do I locate the exact location where this error is occurring 404 page not found

I recently installed a wordpress theme and lots of plugins. This error appears on blog post after refreshing page for second time anywhere in between the post content. Here's the link to my site: ...
1
vote
0answers
225 views

jShowOff not showing numeric links, shows 'undefined' instead

I made a content rotator with jShowOff in a wordpress site, and wanted to have numeric links to each slide, that normaly comes by default but somehow shows 'undefined', the only thing i found on the ...
0
votes
1answer
959 views

Add mark-up after/before link in wp_list_categories

This is probably a trivia question, but I can't seem to find a simple solution. This is my wp_list_caterories php... <?php wp_list_categories(array( 'orderby' => 'name', 'show_count' ...
2
votes
2answers
3k views

jQuery UI AutoComplete not working in wordpress?

To use jQuery UI AutoComplete, I loaded the following scripts: wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-widget'); ...
1
vote
0answers
353 views

How to reload a select box of posts dynamically?

I'm using custom meta boxes for a project. I have created a custom taxonomy (select box) and I have another select box populated with Posts. I need to only load the posts based on the selection of the ...
1
vote
1answer
357 views

Load jquery only for certain pages in the backend

I have a set of custom theme settings in my functions.php file. In order to arrange some things I want to load jquery ONLY to my functions.php file. What I read in wordpress is this: If it was ...
0
votes
1answer
448 views

Converting a working AJAX form to work with Wordpress

I have a working html form with jQuery validation and have been submitting the data with AJAX, I am now trying to copy this form in to my own Wordpress theme, but I can't see where I am going wrong in ...
1
vote
0answers
1k views

Filter wordpress post categories with jquery/ajax and pagination?

Currently I have a website working with Wordpress and Jquery Quicksand (http://razorjack.net/quicksand/). However I don't want to show all posts at the same time. I wish to show e.g. 6 posts and then ...
0
votes
1answer
370 views

filterable portfolio with wordpress and jquery

I used this tutorial in creating portfolio page: http://wp.tutsplus.com/tutorials/creating-a-filterable-portfolio-with-wordpress-and-jquery/ I am working on Thematic child theme: ...
0
votes
1answer
1k views

Using the loop to set locations for all posts on a single google map

Firstly, hi all! I am new to worpress stackexchange. I have been trying to build my own google map to show the location of all my posts. But I don't seem to be able to get the markers to display on ...
1
vote
1answer
581 views

Javascript stopped working [closed]

For some reason, the scripts that I have set up on my wordpress install stopped working yesterday afternoon. I had been editing things, but I'm not sure what I could have done that caused it to stop. ...
0
votes
1answer
596 views

Pirobox Gallery from single image link

I need to have the post thumbnail image link to a gallery of post attachements displayed using pirobox. This is the code i use: <?php if(has_post_thumbnail()){?> <div ...
0
votes
2answers
90 views

how to call jQuery in admin as well as in homepage

I have this jquery code inside my wordpress admin page that checks if the input value is empty. $j(function(){ $j('form').submit(function(){ var link = $j('#input').val(); if(link == ''){ ...
4
votes
1answer
1k views

Automatically decrease font size for long words

I am working on an e-commerce site in which post and product titles will need to be displayed in fairly narrow divs. I would like to set a specific font size for words which can naturally fit in the ...
2
votes
1answer
1k views

Bulk Image upload and one image for each post?

I have around 3000 photos, want to upload on WordPress. Is there any way to bulk upload all the photos as one image for each post ?
0
votes
3answers
120 views

Do all wordpress themes a similar class name for content?

I was wondering if all wordpress theme have a similar class name for the content.. For example I know the class for post/content in the twenty ten and twenty eleven is .entry-content if not then ...
1
vote
2answers
195 views

Why $ for jquery doesn't work?

I used the following to enqueue jquery plugins: <?php function my_scripts_method() { wp_enqueue_script( 'custom functions', get_template_directory_uri() . ...
1
vote
1answer
2k views

force enqueue script to be first in order of prominence

I have a few scripts which are being enqueued, the problem is that I want to force the order of prominece to which these scripts are loaded. There is one in particular which is loaded from a plugin ...
2
votes
1answer
84 views

What is the difference between these two methods of writing $ instead of jQuery in WordPress [closed]

What is the difference between these two methods of writing $ instead of jQuery in WordPress (function($) { // $ Works! You can test it with next line if you like // console.log($); })( jQuery ); ...
1
vote
1answer
1k views

How to put JQuery/Ajax inside shortcode?

The purpose of this plugin is to create a list that users can modify with up or down votes. The shortcode is supposed to display the list on a page and use JQuery to fadeIn and fadeOut while updating ...
6
votes
2answers
5k views

Enable Submit Comment Without Page Reload (Using Ajax)?

When user writes a comment and hits the submit button, WordPress reloads the page, before the comment is shown to the user. Is there an Ajax-based solution that allows users to submit questions ...
3
votes
3answers
1k views

Set Featured Image programmatically (in admin) with JavaScript?

I'm trying to set the post thumbnail (featured image) with javascript from an existing image in the media gallery. I would consider a php-based option too I suppose (one that would require clicking ...
-1
votes
2answers
752 views

Carousel Hover Image

I a using an image carousel to display some pictures on my website. The carousel I am using is called: Jcarousellite (http://www.gmarwaha.com/jquery/jcarousellite/). I have the carousel setup, styled, ...
0
votes
3answers
1k views

Fall Back Google CDN in JavaScript

In HTML5 Boilerplate it Grab Google CDN's jQuery with this JS code <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline --> <script ...
1
vote
2answers
2k views

How can I include JavaScript that use jQuery on admin side

I try this: add_action('admin_print_scripts', 'custom_admin_scripts' ); function custom_admin_scripts() { echo '<script type="text/javascript" src="' . get_bloginfo('stylesheet_directory') ...
0
votes
2answers
170 views

How to tell WordPress that jQuery exists on the page to avoid duplicates via wp_enqueue_scripts

To reduce http requests, I'm combining all scripts that my theme uses into a single minified .js file each time theme options is saved. One of the files in this .js is the jQuery library. Rather ...
0
votes
1answer
280 views

Plugins loading multiple copies of JQuery

I'm having issues where multiple copies of jQuery are being loaded onto the page via plugins that require jQuery. I Just want to confirm that if I have 3 plugins active on my page, that all properly ...
0
votes
1answer
2k views

what does $options = get_option('test_theme'); do?

I'm trying to set up theme options so they save with AJAX, I found this tutorial http://return-true.com/2010/01/using-ajax-in-your-wordpress-theme-admin/ it's calling $options = ...
0
votes
2answers
628 views

Remove swfobject.js in wp_head()

I have gotten rid of the wlwmanifest_link and jquery, since I load it from a compressed version and at the footer, but I can't find a way to get rid of the swfobject.js. This is the code I used to ...
0
votes
1answer
1k views

Wordpress slider that allows image, headline, text, and button?

I'm looking for a slider for Wordpress that will allow me to create a really clean-looking site—the kind of site where you land, you see text and images, and you don't even know you're looking at a ...
3
votes
4answers
3k views

How to handle multiple instance of “send_to_editor” js function

Here is what I am doing: I Added wordpress media upload with iframe popup when a button or link clicked. And with click of insert into post the image url placed on a textbox. send_to_editor() ...
0
votes
2answers
417 views

Connect Agile Carousel to WordPress AJAX

Originally I hacked together Agile Carousel and WordPress by passing wp-load.php into the AJAX script but clearly that isn't the way to go. I've now read that wp-admin/admin-ajax.php is better, but I ...
1
vote
1answer
2k views

Add a Fancybox automatically to post type “post” images

Currently, on my homepage (which is a list of posts), if you click an image it opens in the same window as a full size image. I'd like to change it so that when a user clicks said image it opens into ...
0
votes
2answers
245 views

Wordpress Front-End Theme Editor

I would like to change my option panel to the front-end. So user can see whats happening with the site. Changes must be real-time. Searched allover but cant find a way to solve this.
0
votes
1answer
236 views

this jQuery function works perfect in static html page but not on wordpress

I am using wp_enqueue_script to do this. If I try to do something else lets say popup a dialog, it works but the code below does not. Can someone tell me the problem. thanks. var $j = ...