Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I used the Custom Category Post Order plugin in my Wordpress site. But this plugin load 4 times jquery ui code in. This jQuery ui code generate errors in my own javascript code. Is it posible to load only the jquery ui script in the admin page in wordpress. Of is that not possible.?

share|improve this question
add_action( 'admin_enqueue_scripts', 'my_function_to_enqueue_scripts' ); – Tom Auger Aug 15 '12 at 15:39

1 Answer

It's very possible, and a good plugin writer should know better. The solution is not a simple one, and unless you're comfortable editing the plugin, you'll probably want to contact the author of the offending code.

Scribu has a great little tutorial on the proper ways to load javascript located here: http://scribu.net/wordpress/optimal-script-loading.html

And Justin Tadlock does a good admin specific writeup here: http://justintadlock.com/archives/2011/07/12/how-to-load-javascript-in-the-wordpress-admin

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.