the_category if/else statement
Question
I 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::instance()->dportfolio_get_category();
}; ?>
and when I try to add a second part of a code:
the_category(', ')
with if/else
statement, I receive a php error.
Any suggestions to write this function in a correct way?
0
categories
8 years
2014-10-21T01:41:19-05:00
2014-10-21T01:41:19-05:00 0 Answers
72 views
0
Leave an answer