Disable post formats ui buttons wordpress 3.6
WordPress 3.6 introduces and entire User Interface (UI) for the “Post Formats” idea. It’s on the add and edit post screens. I generally dislike post formats as I much prefer to separate my different posts into custom post types. I find the UI clumsy and rather counter intuitive for clients. There are several new functions that go along with new integrated post formats (a few shown after the break), but the purpose of this post isn’t to tell you how to use post formats, but rather how to turn off post formats. Here’s a quick snippet that will disable the post format buttons in the posts page UI. There is a patch in the works at the time of this writing which will give you an option to turn off the post formats UI in the screen settings: which will be per site, per user, and per post type…
1 |
add_filter( 'enable_post_format_ui', '__return_false' ); |
Simple add that filter to your functions.php file, and the post format buttons should be gone.
If you’re looking at trying to customize and style the output of the post formats, you should check out these specific wordpress functions:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
// Adding support in your functions.php add_theme_support( 'structured-post-formats', array( 'link', 'video' ) ); add_theme_support( 'post-formats', array( 'aside', 'audio', 'chat', 'gallery', 'image', 'quote', 'status' ) ); // Outputting post formats in your template files <?php the_post_format_image(); ?> <?php the_post_format_link(); ?> <?php the_post_format_video(); ?> <?php the_post_format_audio(); ?> <?php the_post_format_quote(); ?> <div class="entry-content"> <?php the_remaining_content(); ?> </div> |
This post from Envato should get you started on using the various functions for the post formats.