WordPress and jQuery [closed]

jQuery.noConflict() jQuery is included in WordPress in noConflict mode, so as to work with other javascript extensions that also use $ as an alias. Hence your above Version II will not work with the WP native jQuery loading. What is jQuery? jQuery is not a language. It is nothing but a (massive) javascript object. That … Read more

Hacking TinyMCE for better usability (shortcodes and html)

Have a look at my Gridster Plugin, it replaces every shortcode [gridster id=”” title=””] with a visual replacement, like you know from the -Shortcode. To change parameters of the current shortcode, you’re able to click a button and a tinyMCE modal will let you change anything within a user-friendly GUI. The functions are based on … Read more

AJAX returns response 0

Your action hook should be add_action( ‘wp_ajax_cc_author_change_postauthor’, ‘cc_author_change_postauthor_callback’ ); I think because of your wrong hook, your callback function is never called. You might have got this wrong aswell. In your JS code please change your action from cc-author-change-postauthor to cc_author_change_postauthor

Moving jQuery to the footer without using de-register in WordPress

You should use the param $scripts of the hook wp_default_scripts. In this hook was en-queued all default scripts, also jQuery and you can change his data, like the group for load in footer. add_action( ‘wp_default_scripts’, ‘_print_jquery_in_footer’ ); function _print_jquery_in_footer( $scripts ) { if ( ! is_admin() ) $scripts->add_data( ‘jquery’, ‘group’, 1 ); } Also in … Read more