javascript - Use jQuery plugin with Wordpress? -
i want show jquery flot graph on wordpress blog. (edit: post, clear.)
i've got flot graph working outside wordpress, (lack of) documentation , (millions of conflicting) forum questions getting jquery plugins working wordpress confusing.
what need use flot plugin wordpress?
i'm guessing:
- add reference jquery somewhere in wordpress post. apparently jquery bundled wordpress, it's not included default in head, how refer it?
- add reference flot in wordpress post. i've installed wordpress flot plugin, actual javascript file? (the documentation doesn't say!)
- add flot script inside document.ready - forum posts refer need change
$
jquery
when using wordpress: need this?
thanks this. think wrote definitive post on "using jquery plugins wordpress" lot of grateful traffic.
wp_register_script('flot', plugins_url('/flot/jquery.flot.min.js', __file__), array("jquery", "jquery-ui-core", "excanvas" ), '0.7.0');
(taken flot.php)
Comments
Post a Comment