What im trying to do is echo a class depending on witch of 3 Main "Parent" Categories the content was posted in , here is my code so far
<article class="post
<?php
if ( in_category( 'dream-it' )){ echo 'dreamit'; }
if ( in_category( 'build-it' )){ echo 'buildit'; }
if ( in_category( 'get-the-hell-out' )){ echo 'getout'; }
?>
">
I know im doing this wrong any help would be amazing ! thank you!