Getting Wp_get_archives to show category name
-
Hi all,
I’m using
wp_get_archives('type=postbypost&limit=5')
to show the latest 5 posts on my homepage:
1. Post #1
2. Post #2
3. Post #3
etc.But I’d like to also include the name of the category that each post belongs to. So that the list would look something like this:
1. Post #1 [Category X]
2. Post #2 [Category X]
3. Post #3 [Category Y]
etc.How would that be done?
Thanks in advance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Getting Wp_get_archives to show category name’ is closed to new replies.