Displaying icon image for WordPress post formats, is there a cleaner way to do this?

The code I am currently using in the loop is in this code snippet:
https://gist.github.com/1316622

This just seems messy, and long.

Read More

I am thinking the best method would really be to use CSS sprites and the post class, but for some reason I cannot put my brain around how to do this.

I created another gist of the output of my WP loop, so you can see the post format is added to the class of the article. Not sure if that is the easiest method to address this, and am appreciative of any help:
https://gist.github.com/1316633

Related posts

Leave a Reply

1 comment