I am working in the Reventon theme, and I am in the file post.php.
On the blog page, there is an image that is spit out on the left side of every post. I am trying to change that picture depending on what category is assigned to the post.
I have tried using this so far:
if (is_category('video')) {
?>
<div class="post-format-icon rectangle-shadow">
<i class="icon-entypo-play-align-left"></i>
</div>
<?php
} elseif (is_category('Podcast')) {
?>
<div class="post-format-icon rectangle-shadow">
<i class="icon-entypo-rss-align-left"></i>
</div>
<?php
} else {
?>
<div class="post-format-icon rectangle-shadow">
<i class="icon-symbol-align-left"></i>
</div>
<?php
}
but for some reason it keeps triggering the ending else statement and not giving the unique picture depending on the category.. Where am I going wrong?