I use the underscores.me framework and in my content.php (the template displaying the loop of posts) I have the following code:
<div class="article-text dot-ellipsis">
<div class="article-title clickablediv">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a><br>
</div>
<div class="excerpt-index clickablediv">
<a href="<?php echo get_permalink(); ?>"></a>
<?php the_date(); echo " - ";
$my_excerpt = get_the_excerpt();
if ( '' != $my_excerpt ) {
}
echo $my_excerpt;
?>
</div>
</div>
This enables me to style every post. However I want to be able to style each post format differently so that e.g "status" posts and regular posts get different markup. I want to do this without CSS!
I am not sure if this makes any sense but, in other words is there a way to do:
If post format is "status" then apply the following markup -->> Something
If post format is "quote" then apply the following markup --->> Something
and so on... for all the formats available in Wordpress by default.