Support » Fixing WordPress » If Category have description show in single post..

  • Resolved onurblank

    (@onurblank)


    Hello,

    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[0]->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!
    Regards
    Onur

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘If Category have description show in single post..’ is closed to new replies.