Ashish Sinha
asked 9 years ago

I need to create new post formats (say ‘ABCD’). Are there guidelines for these that I can use? I did try adding/registering, but didn’t really work 😐

1 Answers
answered 9 years ago

Hi there , to create new post formats , you have to add it to post-formats.php of wordpress first:
First , wordpress –> wp-includes –> post-formats.php . Go to line 88: function get_post_format_strings(). This is the place contain all the post formarts of wordpress , you can add yours here like add a new element to the array : 

'abc' => _x( 'abc',    'Post format' ),

And then , go to themes folder –> dw-focus –> functions.php . Go to line 128 , you will see a function :

add_theme_support( 'post-formats', array('audio', 'gallery' , 'video' , 'abc' ) );

add your post formats there :). Enjoy !

Powered by DW Question & Answer Pro