Hello Colleagues -
I saw one other post submitted where the poster asked Gene about the new Post Formats in WP 3.1 and if Thematic deals with these yet. Gene did not reply but the consensus was that it does not, so this is to a) outline the opportunity, b) discuss ways to program for it.
WHAT ARE POST FORMATS? From the Codes: "Post Formats is a theme feature introduced with Version 3.1. A Post Format is a piece of meta information that can be used by a theme to customize its presentation of a post. The Post Formats feature provides a standardized list of formats that are available to all themes that support the feature. Themes are not required to support every format on the list. New formats cannot be introduced by themes nor even plugins.
VISUAL EXAMPLE: http://wpti.ps/functions/playing-with-post-formats-of-wordpress-3-1/
PROGRAMMING STRATEGY & TACTICS: If you read around on the web, there are a couple of ways to create different looks for different post formats being presented. The first, I found is to program into your index loop a check to see if the page generated is a particular post format, then calling in your specific "dif" formatting. The second is to instruct WP, via a function, to look for specific templates in the theme folder, which in this case would be your child theme of thematic folder. See discussion and code example at bottom here in codex: http://codex.wordpress.org/Function_Reference/get_post_format
Now I know that some programmers favor no use of templates, but since they are a standard WP convention, I am inclined to consider this tactic as an option.
Dougal Campbell also has posted a good critique of different approaches, where he rules out the "else if" block of code tactic in favor of using a "get template" solution, here: http://dougal.gunters.org/blog/2010/12/10/smarter-post-formats
So, before the good Thematic core programmers have a chance to work it into Thematic core, my thought is that we need a good function written to instruct the thematic child theme to look for the appropriate post format template as described at above links. I will send a $30 Amazon.com gift certificate to the best function written and posted here.
- Scott