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

5
votes
2answers
394 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
107 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
69 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
73 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
50 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
173 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
160 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
44 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
71 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
321 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
327 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
90 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
378 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
3k 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
495 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
219 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
612 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
150 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 ...
5
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?

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
169 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
261 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
1answer
4k 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
321 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
178 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
75 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
429 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
33 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
201 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
85 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
103 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
594 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 ...
0
votes
1answer
104 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
145 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
112 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
359 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
7k 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
277 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
139 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
30 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 ...
2
votes
4answers
381 views

Debug whats going on inside a function called from AJAX

I have a link on my post edit page (admin side) that calls up AJAX and jQuery to run a function inside my functions.php page. The link is wired up and calling the jQuery but I can't seem to debug ...
-4
votes
2answers
455 views

Adding jquery using php function

I was turned down with this question because I get a php error and my question revolves around jquery, but when I take out the JQUERY everything works fine. * Again I'm creating a wordpress plugin. I ...
0
votes
2answers
458 views

how to refresh index page without reloading browser using ajax

the desire i want is similar on how facebook works; when a new content is being published, it pushes down the old post with the new posts on top. New Content (pushes down previous topics without ...
3
votes
2answers
458 views

jquery plugin only in one page/post

Ive seen all the documentation in the codex but I am doing something wrong since it doesnt work! I want to implement this jquery plugin (https://github.com/davidcrawford/typist-jquery) in my welcome ...
0
votes
1answer
174 views

Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?

I'm trying to implement AJAX into my post edit form in order to hook a custom wp function into a link click. So far I've been able to register my custom js file into my admin header. However when ...
0
votes
2answers
1k views

Javascript included but alert() function not working

I've included the javascript by wp_enqueue_script('slider', plugins_url( 'slider.js', __FILE__ ) ); with just a simple $(document).ready(function () { alert("alert"); }); It shows up in the ...
0
votes
3answers
500 views

Search box with field hidden till drop down selection is made

I have a search widget with a drop down populated with my custom taxonomies. I need one of the other input fields to only show when a certain taxonomy or its children are selected. Before you say ...
0
votes
1answer
180 views

JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly

all right... I am attempting to create a plugin for my site that adds a js snippet to the head section when a front end page loads. The js is meant to add smooth scrolling to all internal links. ...
0
votes
1answer
166 views

JQuery prepend a function

I am trying to see where I went wrong with this code. I was trying to prepend the avatar and user meta above the admin menu. I get header already sent messages as well since the code is just right ...
1
vote
1answer
2k views

Making the wordpress login form a jQuery dropdown

I'm using a plugin called sidebar-login to display a wordpress login form (it uses wp_login_form) in my sidebar. However, I feel like it the actual form (textboxes and labels) take up too much space ...