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
votes
1answer
414 views

Using AJAX in a Widget to Sort items [closed]

Hi I am trying to use jQuery sortable to sort items in a widget on the admin side. However I am having trouble getting any data in the JS file when I do alert(order). Any idea what might be wrong ...
1
vote
1answer
696 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. ...
1
vote
0answers
285 views

Load the next posts ajax

I use the below code to display the first 5 results. <ul class="category_list_view" id="widget_index_upcomming_events_id"> <?php global $post,$wpdb; $post_number = 5; $category1 = $category; ...
1
vote
2answers
2k views

Can I include Javascript/jQuery in a page?

I'm extremely new to Wordpress, and I've offered to help out with a project that uses it. In a new page I'm creating, I need to use javascript/jQuery to write out the html dynamically - it doesn't ...
0
votes
1answer
166 views

jQuery dialog prints HTML-Tags under Wordpress

i need some help. I am using wp_localize_script in my Wordpres_Plugin. Inthe documentready-function i use this Code to bring the Message up: $('#button-setup-league').click(function() { $( "#dialog ...
-1
votes
1answer
172 views

Integrating jSquares and Jquery with Wordpress loop

I am trying to integrate jSquares with wordpress and I am having a couple of issues. I am a beginner developer - but would love to solve this problem so that anyone can use jSquares with Wordpress. ...
0
votes
1answer
194 views

Ajax call does not work for this custom code

I have this ajax call which gets the value for catname: jQuery('.bio a').click( function(){ var catname = $(this).closest(".bio").data('category'); alert(catname); jQuery.ajax({ ...
0
votes
2answers
130 views

wordpress before or after javascript problem

hi guys im aqeel im trying to implement a slide show in a wordpress site's home page but it not working it simply contains the easyslider1.5.js file which i put in js folder css which of course in css ...
0
votes
1answer
826 views

How to add shortcode to show/hide press releases?

Is it possible to create a TinyMCE button and shortcodes to WordPress to enclose press releases in, so that they're hidden by default, but at the press of the button, they would expand to reveal the ...
-1
votes
1answer
611 views

How to combine jQuery in-place editor with $wpdb->update

i am trying to use jQuery in-place editor (http://code.google.com/p/jquery-in-place-editor/) on WordPress to update certain values of a custom made table in my database. I am not really skilled with ...
1
vote
2answers
866 views

Load comments per post on click with AJAX

I'm working on a theme that uses a slider to display blog posts. Beneath the slider is a pagination that displays like a timeline, with a date instead of a page number, calling the corresponding blog ...
0
votes
2answers
1k views

Calling external Libraries in Wordpress

I am doing some maintenance on a blog that I was hired to create a couple of months ago. They wanted to add a slider in, so I started to implement FlexSlider. I ran into a problem though with the ...
1
vote
1answer
307 views

Ajax comments not working

I followed a tutorial to 'ajaxify' wordpress comments where it does not reload the page: jQuery('document').ready(function ($) { $('#commentform').each(function () { var commentform = ...
0
votes
1answer
108 views

How to enque js script in footer that are not in .js file?

I do have code that is js script inline together with php script is their possible way to enque it to footer without puting it on .js file To clear explanition on my question here is my example code ...
0
votes
1answer
844 views

Cannot enqueue jQuery correctly using Google CDN

The problem: I understand how to regularly enqueue jQuery UI in functions.php. My problem is that I'm using a selectmenu widget that doesn't come with WordPress by default: ...
0
votes
1answer
4k views

call shortcode in javascript

I want to display a shortcode through jquery after the DOM is loaded: This is how I call the shortcode: <?php echo do_shortcode('[plugin]'); ?> Now, my question is how can I call that ...
4
votes
4answers
3k views

What is a good jQuery content slider plugin? [closed]

I'm looking for a plugin that will let me easily place a jQuery based (because I want to avoid the hassle of multiple javascript libraries) slider on my site in various places. I'd like it to be able ...
-2
votes
1answer
1k views

Use ajax response in PHP function

Ok, so I'm working on a plugin and just ran into a problem. Here's what I'm doing: 1. Using a metabox with Plupload to upload an image to an upload dir in the plugin folder. 2. Upon upload success a ...
0
votes
1answer
35 views

Is it possible to append an external html file to my wordpress navigation?

I'm trying to add a hardcoded 'megamenu' style dropdown div to my wordpress site. The content of the div itself doesn't need to be administered via wordpress, it will all be hardcoded. I don't want ...
0
votes
1answer
34 views

Loops running into each other

I have 3 loops on one page, each pulling a different CPT into a portfolio like layout. Live: http://iassc.baltimoredrew.com/providers/ Gist: https://gist.github.com/3503334 However the tags for the ...
0
votes
1answer
215 views

Using jQuery .after inside loop

I have a bit of javascript that will dynamically add a static post to a loop. The script uses the jQuery 'after' method and on a static page it works beautifully but when inside the loop I don't get ...
0
votes
1answer
1k views

Using JQuery to check for Rel Attribute of Image before Overriding It

My Wordpress theme (when enabled) overrides the rel value of the link of all images with rel="lightbox" using the following code: http://pastebin.com/Bsh739QY How can I edit the JQuery to check for ...
0
votes
1answer
595 views

Using jquery-1.7.2.min.js instead of the wordpress jquery

I have been trying to deregister the wordpress native jquery and use my version that i have downloaded.At first everything was working fine with the wordpress resident jquery albeit replacing $ with ...
0
votes
1answer
326 views

jscrollpane problem with my child theme

i am trying to use jscrollpane , but i tried everything , its still not working this is my function page <?php /** * Custom Child Theme Functions * * This file's parent directory can be ...
0
votes
1answer
96 views

including jquery

I know that wordpress ships with jquery. I have built my site first in html and every script that I have running in the html version works fine running version 1.4.2. I included this same jquery ...
0
votes
1answer
484 views

Custom theme, contact form 7 & fast secure form doesn't work

I have problems with the plugins CF 7 & FSF. When I paste the code [si-contact-form form='1'] for FSF I get the result of the code "[si-c..." itself when I load the page instead of a form. I ...
0
votes
2answers
830 views

How to use media upload on metabox post page without breaking TinyMCE?

I'm using the following code for upload in multiple mextaboxes in a post or page admin section. Works for metaboxes but breaks the TinyMCE insert image. I want to know please how I can achieve this ...
5
votes
2answers
2k views

Making $ globally accessible with jQuery.noConflict()

The Codex promotes this method of using $ inside a plugin/theme JavaScript file: jQuery(document).ready(function($) { // $() will work as an alias for jQuery() inside of this function }); But ...
2
votes
2answers
1k views

Unable to get_the_content(); of a post in Wordpress via AJAX

I'm trying to ajaxify my Wordpress theme and I use the method described here and I'm now trying get_the_content of post via functions.php. Using jQuery, when I do alert(data) I get the 'title' echo ...
0
votes
1answer
421 views

Jquery Theme Roller to Wordpress

How can you load a custom made Roller Theme for Jquery ui to wordpress? I recently created and downloaded a new theme for the datepicker, but can't get it loaded. I tried adding the css file to my ...
0
votes
1answer
439 views

Customizing the Jquery Calendar [closed]

I have never used Jquery before so I am quite stuck. The datepicker calendar that gets displayed is not quite what I am looking for, so I am looking to customize it, but don't even know where to ...
3
votes
2answers
4k views

Add a jQuery function to admin pages

I need to add a bit of document ready jQuery to post/page editors in admin. I'm hacking an old plugin that adds a text box to the editor page and handles inserting that text in a template file, but ...
0
votes
1answer
456 views

Loading scripts on specific pages using PHP in footer.php

I'm trying to load scripts only when needed on a particular page. I've got the following in my footer, but am struggling with the 'is nots' and also chaining the PHP together in an else if statement ...
-4
votes
2answers
741 views

can't make jQuery work (change image on time interval) [closed]

I don't get it why jQuery function is not working. I read on the interned how to load jQuery in wordpress, but with no success. Can anyone help me? What I did so far: I've put this in header.php ...
-1
votes
1answer
1k views

Theme using masonry layout script rendering overlaped images in Google Chrome [closed]

I have a WordPress theme built with Masonry script , I added a new template file for list gallery, is working ok in FF and IE but in Google Chrome gallery images (inside containers) are overlapped. ...
0
votes
2answers
255 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.
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
1answer
531 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
0answers
139 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
200 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
3k 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
1k 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
1answer
590 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
528 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
546 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 ...
6
votes
2answers
5k views

What is the simplest ajax upload plugin or script to be used with wordpress?

I'm trying to use image upload in my theme's options page and haven't found yet a simple ajax upload script with many tutorials or a good documentation, I just want a simple straightforward script so ...
0
votes
2answers
221 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
373 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 ...
-2
votes
2answers
7k views

jQuery conflict

I am trying to run the following jQuery to change the text of my username and password boxes so that they do not need a label (inside <script> tags): jQuery(document).ready(function($) { ...
1
vote
0answers
729 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: ...