• Hi All,

    I am new to wp and I am in the process of setting it up. I have created several categories with specific descriptions as to what should be posted to each category. For instance, I have one category for general discussions on the blog theme which forbids advertising and another category specifically for blog theme advertisements. I need to make these requirements known to both posters and commentors before they post or comment.

    Is there some way I can show the category descriptions prominately so people can avoid posting or commenting in the wrohg category?

    Thanks,
    Dick Roose

Viewing 2 replies - 1 through 2 (of 2 total)
  • Add <?php echo category_description(); ?> to the template (not to the post) wherever you want the description to be displayed.

    S.K

    Is there a way to add the category description to the single.php page?

    I have it working just fine on archive.php, but when I try and get it to work on an actual post I get the following error:
    Catchable fatal error: Object of class WP_Error could not be converted to string in …/single.php on line 18
    Line 18 = <?php echo category_description( $category ); ?>
    I get a similar error if I exclude $category
    Thanks! ~Jules

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display category descriptions’ is closed to new replies.