Display multiple “save draft button” on a post edit

One really simple way is to just insert another “save draft” button wherever you want in your post editor page. <input type=”submit” name=”save” value=”Save Draft” class=”button”> You essentially just want to make sure it’s got “save” as it’s name attribute and “Save Draft” as it’s value.

Functions are causing errors

You don’t want to add function vote_up() { […] } at the top of every post if you display more than one post on a page. You want to declare the vote_up() function in your plugin’s PHP file. Once the plugin declares the function, as long as the plugin is active, you can just call … Read more

wp_editor customization

What you can do is use the get_current_screen() function to get what screen the current user is on ( in the admin panel ) and only add those global values whenever the user is viewing the post page: function my_format_TinyMCE( $in ) { $screen = get_current_screen(); if( is_object( $screen ) && ‘post’ == $screen->post_type ) … Read more