Are you creating own wordpress theme and searching php code for your theme like category, author, comments and archives here are some codes for you so you can create your template more wonderfull. Some parts of the WordPress code structure for PHP markup are inconsistent in their style. WordPress is working to gradually improve this by helping users maintain a consistent style so the code can become clean and easy to read at a glance.
SHOW NAME OF AUTHOR OF THE POST IN WORDPRESS
<?php the_author() ?>
NAME OF CATEGORY OF THE EXISTING POST WITHIN A WORDPRESS THEME
<?php the_category(', ') ?>
SHOW NUMBER OF COMMENTS IN WORDPRESS THEME
This code will show number of comments in a particular post.
RECENT POST OF A PARTICULAR CATEGORY IN WORDPRESS THEME
Using this code you can get the recent post of a partivular category.You can show number of post you want to show by editing the value “‘numberposts=5″ .You have to add the category id in “category=1″.