Posted By

justinscheetz on 02/03/09


Tagged

wordpress category categories description


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Bluewall
YA


Pull the Category Description ONLY if a description is available.


 / Published in: PHP
 

  1. <?php if (strlen(trim(category_description())) > 0 && trim(category_description()) != "<br />") {
  2. echo "<div id='catdesc'>";
  3. echo category_description();
  4. echo "</div>";
  5. }
  6. ?>

Report this snippet  

You need to login to post a comment.