Support » Fixing WordPress » Can someone explain Function Reference/category description

  • I’d like to reference my category descriptions on my category pages so they show up on the category page. I’ve looked at http://codex.wordpress.org/Function_Reference/category_description but I’m not familiar at all with php. I tried adding this code in the archive.php file but nothing happened <?php echo category_description( $category_id ); ?>

    Ideally I could get the category description to show up in a widget on a sidebar.

    Any help appreciated.

Viewing 1 replies (of 1 total)
  • Try it without the $category_id

    <?php echo category_description(); ?>

    This will automatically find the category that the post is in and display the description.

Viewing 1 replies (of 1 total)
  • The topic ‘Can someone explain Function Reference/category description’ is closed to new replies.