Since WP 3.1, it’s been possible to use Tumblr-style post formats. I want to use the ‘aside’ option in a theme, but I want it to have a different title in the WP admin area.
So, for example, when a user is writing a post, they have the option for the post to be, say, either ‘Standard’ or ‘Quick’ — rather than ‘Standard’ or ‘Aside’.
Is it possible to do this without modifying the core? It’d be great if it’s something that could be pretty easily done via functions.php or the like. I live in hope…
Thanks!
I think this is the only way for now. Put this in your functions.php in your theme folder or create a simple plugin:
function rename_post_formats( $safe_text ) {
if ( $safe_text == 'Aside' )
return 'Quick';
return $safe_text;
}
add_filter( 'esc_html', 'rename_post_formats' );
//rename Aside in posts list table
function live_rename_formats() {
global $current_screen;
if ( $current_screen->id == 'edit-post' ) { ?>
<script type="text/javascript">
jQuery('document').ready(function() {
jQuery("span.post-state-format").each(function() {
if ( jQuery(this).text() == "Aside" )
jQuery(this).text("Quick");
});
});
</script>
<?php }
}
add_action('admin_head', 'live_rename_formats');