My categories come only with title and keywords. You can check here: http://www.nighthawkjourneys.com/nightlife-blog/category/nightlife-tips/ What I want is to have a short description on every post. It will be great for SEO.
hi, add this code <div class="entry"><?php the_content("[...]"); ?></div> Code (markup): to the file category.php in ur themes directory after the line no "16"
in your category.php, use <?php echo category_description(); ?> PHP: wherever you desire the output to be. refer to http://codex.wordpress.org/Function_Reference/category_description for further usage
if u want short description to display then replace <?php the_content("[...]"); ?> Code (markup): with <?php the_excerpt(); ?> Code (markup):
I have allready <?php the_excerpt(); ?> Code (markup): Is too short for description. bvraghav This code: [B]<?php echo category_description(); ?>[/B] Code (markup): is not for post description but for categories, so it gives the same description to all of posts
u can change the length of the description by changing the value of excerpt in functions.php file (located in ur theme folder) line no 41 Example: "$excerpt_length = 6;" to "$excerpt_length = 100;" Code (markup):