[Resolved] If Category have description show in single post..
I want to have the category description with in <div></div> on my single post php..
So every post will show the description of the category it was posted in.
However some of categories has no description.
<?php $category = get_the_category(); echo $category->category_description; ?>
This code was worked finely but i cant put inside div tag on this php code. I want to use If – else php query with using div tags but i cant do it.
Hope someone can help me out on this one!
Thank you for your time and effort!
- The topic ‘[Resolved] If Category have description show in single post..’ is closed to new replies.