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
3answers
204 views

Plugin jQuery version VS Theme jQuery version: search for best practice

I have built a Wordpress plugin that is based on jQuery and I am using wp_enqueue_script('jquery'); to make it all work. Let say the default version of jQuery loaded by Wordpress is 1.7.2, what ...
0
votes
1answer
621 views

jQuery.accordion isn't a function even when enqueued

I'm trying to implement a jQuery accordion for a client of ours. Basically, it's this tutorial (http://wp.tutsplus.com/tutorials/creative-coding/create-an-faq-accordion-for-wordpress-with-jquery-ui/) ...
0
votes
1answer
137 views

Adding wp_list_categories to a specific div that was appended using jQuery

Due to the way my projects menu is coded/styled I'm having some difficulty figuring this out. I have appended a div to my menu using jQuery, and I want to be able to include an external php file that ...
0
votes
1answer
200 views

FancyBox JS stopped working on multiple sites. Custom plugin responsible. Urgent help needed

First post here so let me know if I'm doing something wrong. The company I work for uses a custom FancyBox Wordpress plugin that allows us to use fancy box on images easily. Basically, when you click ...
1
vote
1answer
746 views

Arrange custom fields with drag and drop?

I am making theme for hotel and i made custom metabox with list of various custom fields that i would need in posts. What i did is i made a list of fields like booking wifienabled coffe pool spa ...
0
votes
2answers
484 views

Add class to <li> based on content of link in <li> [on hold]

I've added a custom JavaScript file to my header via functions.php and the file is linked fine when I check the source code (listed well below the main call to jQuery). Within the custom JavaScript ...
0
votes
3answers
287 views

How to isolate code to the post edit screen

I've got some jQuery that interacts with items on the post and page editor screens. However, the script is also loading on other admin screens that are driven by post.php Is there a way to target the ...
-3
votes
1answer
133 views

Is it possible to animate the Twenty Eleven menu? [closed]

I have a menu in my Twenty Eleven child theme that has some hierarchical items. Twenty Eleven handles it just fine, of course, but my client likes the fancy-looking menu animation that you can see on ...
0
votes
1answer
1k views

AJAX post into pop-up div

I want to AJAX post content into a pop-up div when I click on the post / page link. I have come up with the following code: Relevant HTML / PHP: <ul class="links"> <?php if (have_posts()) : ...
0
votes
1answer
462 views

Adding Widgets to Masonry Layouts Correctly - jQuery &&|| PHP

I tried incrementally adding in my widget area to the masonry layout (PHP below) it appears but I cannot get it included into the masonry like the other blocks. $counts = 0 ; $addin = ...
5
votes
2answers
553 views

Require featured image

I would like to require a featured image on a site I am developing. I tried the code here: Make featured image required and nothing happened - the JS showed up in the site header, but I could still ...
2
votes
1answer
129 views

javascript is not working on Event Submission?

I am using Events Manager Plugin Javascript is not working on Submit Events Page . I found the reason behind this , that was, I have written a line of code in functions.php to call jquery file. ...
0
votes
1answer
73 views

Security to delete post by Admin

My code is so simple like when admin delete a post by Wordpress fucntion (PHP) and do action with jQuery <?php include('../../../../../../wp-config.php'); if(current_user_can('edit_posts')){ $id = ...
0
votes
1answer
89 views

Wordpress video end function [duplicate]

Possible Duplicate: $ not defined using jQuery in Wordpress I need to trigger a alert box when video ends THis is the code i got from google <script> ...
-1
votes
2answers
52 views

Why I am getting double jquery?

I was doing page analysis from http://www.gtricks.com/google-chrome-tricks/extensions-to-block-sites-in-chrome/">Pingdom and GTmetrix, and I notices that I am getting jquery versions 1.7.2 and 1.8.3 ...
0
votes
1answer
185 views

Custom tabs widget don't work in google chrome, is blocked, do not change the tabs. Why?

Code is the problem or is a Google Chrome issue? Here is the code: /*-----------------------------------------------------------------------------------*/ /* Create the widget ...
0
votes
1answer
187 views

Custom counter when link is clicked in Wordpress

I would like to monitor the number of times a user clicks the hyperlink assigned with a class name link_counter. I'm using jQuery and PHP to do this, for example: ...
-2
votes
3answers
49 views

Shortcode return is printing a 1 afterward

function build_total_search_method( $atts ) { $shorcode_php_function = include( dirname(__FILE__) . "/includes/total_search.php" ); return $shorcode_php_function; } add_shortcode( ...
0
votes
1answer
77 views

Insert a Featured Video

I'm trying to put a video as featured in my theme, i mean, to be shown by the tag "the_post_thumbnail ('')", without using any plugin. Is this possible? Thank you!
0
votes
2answers
465 views

Including javascript for a shortcode

I'm creating a plugin that allows a user to use a shortcode. This shortcode depends on a bunch of javascript that needs to be present once the shortcode loads. I'm having issues trying to decide when ...
-1
votes
1answer
361 views

WP Supersized & Easy Fancybox Conflict

I am using WP Supersized and Easy Fancybox Wordpress plugins. Everything is works fine till the point I am not clicking the link to open a fancybox. Image is opening perfectly just having some issues ...
0
votes
2answers
93 views

Multiple widgets in wordpress

I have created a wordpress widget. It has a drop down in widget options. The dropdown contains "facebook" and "twitter". If admin selects "twitter", then twitter follower count is displayed inside the ...
1
vote
2answers
552 views

Override theme style with other CSS on a specific page

The wordpress theme I bought has some jQuery UI styling included in its default CSS file. The problem is I have a plugin that uses jQuery UI and the theme's default CSS makes the plugin corrupted. I ...
3
votes
2answers
4k views

Defer Parsing of Scripts

this is my first time to try this "Defer Parsing" thing, and I don't really have an idea how to do it. Using PageSpeed tool, I found out that one of the reason why my page is loading too slow ...
0
votes
1answer
599 views

Portfolio Slideshow Sliders Behaving Oddly When in jQuery Ui Tabs

I have a pair of Portfolio Slideshows inside of jQuery UI Tabs. One per tab with each pulling in a different page's gallery. When I switch between tabs the slideshows behave oddly. The main image is ...
-1
votes
4answers
236 views

Can't get jQuery to enqueue into post edit script

In the code below, unless I hardcode a reference to the jQuery library, my jQuery bits on the page do not work. What's wrong with the enqueue method I'm trying to use? In functions.php: ...
2
votes
2answers
773 views

How can I add a jQuery OnClick event to the Publish posts button?

I want to add a simple confirmation event to the Publish posts button, so when my client hits "Publish" it will ask him if he's sure, to which he clicks "Yes" or "cancel" and the post then publishes ...
0
votes
1answer
186 views

colorbox not loading in <head>

I can not get colorbox fully loaded. I am trying to add color box to use in my plugin admin. I do not need it for the front end. I can get the css but can not get jquery.colorbox-min.js or the ...
6
votes
5answers
2k views

Wordpress 3.5 Media Manager - add a button

In my plugin, I would like to add two buttons to Media Manager (to the left of "Insert Into Post" in "media-toolbar-primary" section), and connect a jQuery action to it. First one - The "Select All" ...
0
votes
1answer
1k views

How do I make Contact Form 7 pop up in thickbox? [closed]

I am trying to make contact form 7 pop up in a thickbox modal window. I can either use do_shortcode or the shortcode but I'm not sure how to set it up. Can someone push me in the right direction? ...
2
votes
3answers
175 views

Loading jQuery With Two Fallbacks

CSS-Tricks suggests this code to load jQuery. However, I'm curious if anybody has done the same thing in functions.php with two fallbacks: the Microsoft hosted jQuery being the first option and ...
-1
votes
2answers
299 views

jQuery not working for tabs shortcode [closed]

See reference URL - http://prothemeus.com/demo/fact/shortcodes/ If you take a look at the tabs at the bottom of this page, whenever I click on each tab it doesn't show the content underneath. I've ...
7
votes
2answers
5k views

Display Media Uploader in Own Plugin on Wordpress 3.5

I have little problem with Media Uploader in new WordPress 3.5. I created own plugin which is upload the picture. I'm using this code JS: <script type="text/javascript"> var file_frame; ...
0
votes
1answer
370 views

How to make featured image thumbnails on index page load smoother?

I'm using a theme called Hatch Pro, which is a gallery based theme and the index page displays the posts using the featured image. You can see it here. On slower browser environments, the images ...
0
votes
1answer
197 views

Add a jQuery Function

Forgive me for knowing next to nothing about coding. BUT, I am calling jQuery in functions.php, which I have been told is the best way to include jQuery: //Get jQuery function modify_jquery() { ...
5
votes
1answer
77 views

IP address character limit

my client in his template is using <?php comment_author_IP(); ?> to display IP's of comment authors. Recently he came to me with idea of limiting whole number to several characters. Final result ...
0
votes
1answer
496 views

Sorting WP Auctions by date/price?

I'm using this plugin called WP Auctions with the List plugin, and as you may have guessed, it is to display a list of auctions on a page much like eBay where users can bid on items. It is simple to ...
1
vote
1answer
37 views

custom changes removed after plugin update

Ok that's something normal, files are being downloaded again and the code changes. What should I do if I don't want some changes to take place? For example a gallery plugin I use recently updated ...
1
vote
1answer
215 views

Add/remove action on jQuery toggle

I have Ajax setup and I'm trying to toggle a function from being loaded into wp_head. It works on the first toggle function, but the second function doesn't register. function ...
0
votes
1answer
90 views

Javascript will not run properly

I have this code which runs perfectly on jsFiddle. When I try to run that code on my self-hosted WordPress site, however, it will not run. (The code is exactly the same on my page, except that I added ...
0
votes
1answer
107 views

Jquery on custom-field backend

I need some help because I want to use some jquery (and css probably) on some custom fields on post edit screen. What I need exactly is to make , and . magically apear when user types a number: ...
0
votes
3answers
1k views

Adding numbers inside a span tag in nav menu [closed]

I am working on a wordpress navigation menu and trying to simlpy (of course, dynamically) add number inside a span tag for each menu li item. So I created a "top menu" using the wordpress custom ...
1
vote
1answer
114 views

HTML editor accessing quicktag buttons

I'm stuck in searching a way to access the quicktag buttons on the html editor with jQuery. I tryed to access the buttons with .each() and .children() but both won't work. jQuery( document ).ready( ...
0
votes
1answer
168 views

Problem getting .js file to load via a plugin

This http://jsfiddle.net/ambiguous/7L4WZ/ works...it removes empty <p></p> tags and then some but I can not git it to work from my plugin. $('p').each(function() { var $this = ...
4
votes
1answer
127 views

Click link on plugin/theme page and open the contextual help on a specific tab

I've added a help section using the add_help_tab() function. I'd like to be able to click a link somewhere on the theme/plugin page and have the help panel open at whichever tab I need. Can someone ...
1
vote
0answers
462 views

Security - Ajax and Nonce use [closed]

I'm developing a site which posts a number of ajax calls from jquery to PHP and returns data from PhP to jquery. Everything is working, but i'd to know if my approach to handling the calls is ok, in ...
12
votes
4answers
9k views

Using Wordpress 3.5 Media Uploader in meta box?

Is this possible to do? I love how the new uploader works. I'm guessing it has to do with a jQuery call like the other way did. EDIT This is the code I am currently using ...
0
votes
1answer
347 views

jQuery('#news-ticker').cycle is not a function

I am using the news Ticker plugin http://wordpress.org/extend/plugins/news-ticker It shows an error jQuery('#news-ticker').cycle is not a function. In IE It throws an error Dom Element Does not ...
0
votes
1answer
146 views

Royalty-Free Sliders used in theme development

I am wanting to develop a premium Wordpress theme, and would like to know what is the best way to go on choosing a slider. I'm not skilled enough yet to write one from scratch. The ideal situation ...
1
vote
1answer
31 views

jQuery inluclude still seems ncessary for script to work within post

I have a jQuery script that works fine within a WordPress post as long as I include a reference to the jQuery libarary within the post. <script ...