Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

Conditional Filter by Download Category

$
0
0

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!


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>