Genius is nothing but great effort applied. – Awa Kenzo

How To: Enable Post Formats in WordPress

Post Formats take WordPress 3.1 to the next level as a CMS. Enabling a more “Tubmlr” like experience. Your theme MUST support Post Formats for anything “cool” to happen. Currently Twenty Ten, Genesis 1.5 and these themes really make Post Formats look cool!

Read more about Post Formats at the Codex or learn how to use post formats with Genesis Child Themes.

Step 1) Open your child theme’s functions.php or custom_functions.php

Step 2) Paste the following line:

add_theme_support('post-formats', array('aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video', 'audio'));

Step 3) Save.

post-formats-wordpress

After activating Post Formats, you'll see the list on the Add Post page

 

Now, we have can start having fun inside the loop:

if ( has_post_format( 'video' )) {
  echo 'this is the video format';
}

Greg Rickaby runs on the Genesis Framework

Genesis Framework

The theme you're viewing is the eleven40 Child Theme, which was built on Genesis.

Genesis empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!

Take advantage of the 6 default layout options, comprehensive SEO settings, rock-solid security, flexible theme options, cool custom widgets, custom design hooks, and a huge selection of child themes ("skins") that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.

Comments

  1. 1

    Thanks for the mention, Greg! Glad you found the post useful :)

  2. 3

    Thanks a lot!!!

Trackbacks

  1. [...] This post was mentioned on Twitter by Kevin Tan ???, Greg Rickaby. Greg Rickaby said: Enable Post Formats in WordPress 3.1 http://bit.ly/dRJUSF [...]

  2. [...] How To: Enable Post Formats in WordPress (If my post is confusing, start with this post from GregRickaby) [...]

Leave a Comment

Comment Policy: Thanks for visiting my site! Comments are a permanent record of who you are and what you stand for. Your words are your own, so be nice and helpful if you can. Unhelpful, disrespectful, or spammy comments will be deleted. All comments are read and appreciated, and if you have a question, I will try to respond within a couple days.

*