Smarter Post Formats? Use Carrington

Dougal has a good post about using post formats (new in WordPress 3.1) in themes. His technique is pretty clean, but I much prefer letting Carrington handle the conditional code.

We landed support for post formats in Carrington Core over a month ago. To support a custom post format, all you have to do is create a new template in the /content and/or /excerpt directory:

  • /content/format-image.php
  • /content/format-aside.php
  • /content/format-video.php
  • /content/format-gallery.php
  • etc.

and it will be automatically used when needed.

One of the main benefits of the Carrington Core platform is that you can build themes without having to write logic in PHP. It makes creating advanced WordPress themes more accessible to designers who are still getting their feet wet on the development side.

Curious? Check out the documentation (each Carrington theme also includes a README file in each directory that explains what file names are supported there) and feel free to contribute to it.

This post is part of the project: Carrington Core. View the project timeline for more context on this post.