Custom Field Template seriously messed up in WP 3.1.1

This Plugin is loading quite a lot of scripts: wp_enqueue_script( ‘jquery’ ); wp_enqueue_script( ‘jquery-form’ ); wp_enqueue_script( ‘date’, “https://wordpress.stackexchange.com/” . PLUGINDIR . “https://wordpress.stackexchange.com/” . $plugin_dir . ‘/js/date.js’, array(‘jquery’) ); wp_enqueue_script( ‘bgiframe’, “https://wordpress.stackexchange.com/” . PLUGINDIR . “https://wordpress.stackexchange.com/” . $plugin_dir . ‘/js/jquery.bgiframe.js’, array(‘jquery’) ) ; wp_enqueue_script( ‘datePicker’, “https://wordpress.stackexchange.com/” . PLUGINDIR . “https://wordpress.stackexchange.com/” . $plugin_dir . ‘/js/jquery.datePicker.js’, array(‘jquery’) ); … Read more

google conversion code

User needs it in his footer so I think you should use conditional page logic. Something like: If ( is_single(postID)) { //insert tracking code } You can also use the post title or post slug, but id is the most reliable. Old Answer I would consider writing a shortcode. Add the following to your functions.php … Read more

plugin development: problem with functions

The main problem is you are using static callbacks while you should be passing on the object so you have access to your class properties. You can fire off the initialization like this: class Myclass { public function __construct() { // Object method call, instead of a static one add_action(‘init’, array($this, ‘init’)); } public function … Read more

Form doesn’t submit on second submit call

The php function which handles the submitted values in this plugin checks first if the button’s value isset. When using the original submit it is. When using preventDefault() and then calling submit() it isn’t and therefor the php doesn’t handle the submitted form but rebuilds it. To fix this I just added to the isset() … Read more

Creating a social media score plugin

WP_Cron & ‘save_post”https://wordpress.stackexchange.com/”update_post’ hooks sound good. But I’d try saving it either inside an option field or as post_meta data. A stand alone table might be too much an no one wants extra tables. Furthermore you leave other possibilites open if you go the “native” root with post_meta.