Constructing An if Statement with is_category(); in archive.php (WordPress)
I am trying to use an if statement with is_category() in order to build a bigger piece of code later. I can't get the code to recognize the if statement though. Basically below I've posted the coding
stackoverflow.com/questions/11659177/con...rchive-php-wordpress
if(is_category()) {
echo "category!";
}
also see
the_category if/else statementI need to do the following: The sense if I have a class dportfolio - show a category dportfolio. Otherwise show usual category. I use: if ( class_exists( 'DPortfolio' ) ) { echo DPortfolio::