Administration Pages Styling

This will put one separator right after ‘Appearance’ and one right before ‘Plugins’. Just make sure to give your menu position 62 or 63. You can just add it to whatever file is adding the admin page to begin with. This should be called after everything else has been added. function jpb_menu_isolator(){ global $menu; $menu[61] … Read more

Change admin logout URL

The quickest way to do this is through an Apache rewrite via mod_rewrite. You’ll also have to tell WordPress where to points its login links using the login_url and logout_url filters. return apply_filters(‘login_url’, $login_url, $redirect); return apply_filters(‘logout_url’, $logout_url, $redirect);

How do you get thumbnails to show up in the admin edit post?

This looks flawed: add_theme_support( ‘post-thumbnails’, array( ‘post’ ) ); add_theme_support( ‘post-thumbnails’, array( ‘page’ ) ); Do you see the post thumbnail box on pages? If so, you have just overwritten the support on posts with the second declaration. Better: add_theme_support( ‘post-thumbnails’, array( ‘post’, ‘page’ ) );

wordpress reusable content blocks

One of two ways: Add a shortcode, so someone could drop in [content-block id=”12″] wherever they wanted. Here’s a very simple example without a lot of error checking. <?php add_action( ‘init’, ‘wpse29418_add_shortcode’ ); function wpse29418_add_shortcode() { add_shortcode( ‘content-block’, ‘wpse29418_shortcode_cb’ ); } function wpse29418_shortcode_cb( $atts ) { $atts = shortcode_atts( array( ‘id’ => 0 ), $atts … Read more

Adding another “Add Post” button to admin

Unfortunately this isn’t possible (without a slight hack)- since there are no hooks provided (see for example the edit.php page). A quick and easy hack is to use JavaScript to add the link after the usual ‘Add New’ link. Here I’ve used the admin_print_footer_scripts hook (on ‘post’, or ‘edit-post’ screens) to print the JavaScript. Note … Read more