this is just a simple php syntax issue- anything that meets the conditions is_archive() && is_tax('question_category')
will also return true for the first if(is_archive())
, so you’re code is never reaching that test.
this is just a simple php syntax issue- anything that meets the conditions is_archive() && is_tax('question_category')
will also return true for the first if(is_archive())
, so you’re code is never reaching that test.