In archive.php, is there some sort of code to determin if it's an archive with a category or an archive with a certain month? As i'd like to have it say November 2007 or Uncategorized etc. Also is there a code for it to post the current archive's name, for example: I click on Uncategorized, at the top it says Uncategorized. If i clicked Products, at the top it would say Products. Don't worry about CSS, i just need the php code etc to do this. Thanks in advance.
News: <?php single_cat_title(''); ?> That works for getting the category, but if you're looking at a Month - it doesn't work. Any fix?
For monthly archives use: <?php wp_get_archives('type=monthly'); ?> Code (markup): For category archives use: <?php wp_list_categories('title_li='); ?> Code (markup):
That isn't really what I wanted, that just lists all the available categories. I wanted it to tell me which archive i'm looking at, whether it be a month or a category archive. I have got the category part sorted, <?php single_cat_title(''); ?>; but i haven't got a piece of code for the months yet.