Replies: 0
Could you help me get the Download category in a conditional statement?
if (has_category(‘download_category’) ) { echo ‘<li class=”doc-title”>’.get_the_title().’<div class=”doc-number”>’.the_content().'</div><div class=”rev”>’.the_excerpt().'</div>‘;
} else {
echo ‘<li class=”doc-title”>‘.get_the_title().’<div class=”doc-number”>’.get_the_content().'</div><div class=”rev”>’.get_the_excerpt().'</div>‘ ;}
Thanks!