Hi.
Please help !
I have a problem regarding some IFELSE condition with subacategories. I use post_is_in_descentant_category function:
<?php
if ( $kat = 3 || post_is_in_descendant_category( 3 ) ) {
echo ('this is category 3 or it's descendant');
}
elseif ( $kat = 4|| post_is_in_descendant_category( 4 ) ) {
echo ('this is category 4 or it's descendant');
}
?>
When I'm in category 3 it works, but when it comes to "elseif" with category 4 it fails. Categories and subcategories are proprely set, there is no error there.
I am obviosly missing something obviouis ... ;-)
Thanks for help, you anonimous stranger !
Alen