Enabling Post Format in Retropress

Latest Reply from moldavian news at 2013-07-08 10:16:40

I would like to kindly ask how it is possible to enable the Post Format feature on my Retropress theme. I'm currently working on a post stilying solution to my blog, but I needed to be able to set post formats within the edit post page.

For instance, I want to add a new function to the functions.php that styles chat transcripts, but this function starts with:

if (has_post_format('chat'))

Since the Post Format is disabled on the theme, there's no way I can now set a value for that and trigger my function.

Thanks in advance!
Nevermind, found the solution, it's just necessary to add this to functions.php

add_theme_support( 'post-formats', array( 'aside', 'chat','gallery','image','link', 'quote', 'status', 'video', 'audio' ) );
jdp1Yw Wow, great blog article.Much thanks again. Want more.

Leave a reply

Add codeAdd image