WP disobeys disabling of the posts revision feature

wp-config.php is suggested place for such definitions, because at any point later they might get replaced by default values during loading. See Editing wp-config.php in Codex for thorough instructions. Also worth noting that it’s commonly said like add to the end, but really definitions should go above this line: /* That’s all, stop editing! Happy … Read more

More than one meta field in a single meta box?

This is what you are looking for. /* Define the custom box */ // WP 3.0+ add_action( ‘add_meta_boxes’, ‘staff_details_metabox’ ); // backwards compatible add_action( ‘admin_init’, ‘staff_details_metabox’, 1 ); /* Do something with the data entered */ add_action( ‘save_post’, ‘save_staff_details’ ); /** * Adds a box to the main column on the Post edit screen * … Read more

ajax front-end increment views on click

Try this: jQuery(document).ready(function($){ $(‘.external’).click(function(e){ var redirect = $(this).attr(‘href’); $.post(ajax_object.ajaxurl, {action:’inc_views’,post_id:$(this).attr(‘id’)}, function() { return true; // continue with normal anchor link behavior }); return false; }); });