Want more features on Pastebin? Sign Up, it's FREE!
Guest

Include category title/description above category posts

By: a guest on Sep 1st, 2012  |  syntax: PHP  |  size: 0.22 KB  |  views: 53  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.         $category_description = category_description();
  3.         if ( ! empty( $category_description ) )
  4.                 echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' .            $category_description . '</div>' );
  5. ?>
clone this paste RAW Paste Data