I would like to add the post-format functionality to my blog. I’ve spent a couple of weeks trying to find a good how-to online, and I haven’t found one that works. All I’ve got are contradictory how-to’s that don’t work.
As far as I can tell, there are three general steps to enabling post-foramt:
1. turn on post-format in the admin panel (easy, done)
2. get post-format working internally (I can’t figure this out)
3. add some conditional formatting for post-format in the style sheet (I think this is easy, and I’ve got some sample code there to test it out)
Here are the two main sources I’ve been trying to use to get this to work:
Source 1: WordPress Codex (http://codex.wordpress.org/Post_Formats)
According to the Codex, I need to do a step for “Adding Post Type Support” that involves using add_post_type_support() or modifying the register_post_type() function (both in functions.php). This is confusing. First, I’m not sure what kind of post I should be modifying (what should the arguments be for the add_post_type_support() function?) and secondly, I’ve looked through the twentyeleven theme (which does use post-formats) and neither of these functions are used in functions.php (or anywhere else that I can fine).
Source 2: WPRocks.com (http://wprocks.com/2011/09/25/what-are-post-formats-how-do-we-put-it-to-use/)
This approach is based on adding the post_class() method to the loop.php file (I think), and I followed the instruction for Ari (which has a loop.php file), but it’s not working. In addition, twentyeleven doesn’t have a loop.php file, so the instructions perplex me.
My main goal is to get post-format working (I want to use Aside, Link, and Quote primarily) on my blog, but I would appreciate any response that also helps me to understand the WordPress internals better. I’ve got no experience with PHP and very little with CSS, but I do Java and C# at the hobby level, so I’m willing to learn.
My blog is at difficultrun.nathanielgivens.com, by the way.
- The topic ‘How to Add Post-Format’ is closed to new replies.