Question about wp_get_archives() abilities
-
I’m using the wp_get_archives(); template tag to retrieve a list of the 10 most recent posts for a sidebar on a theme I’m building. I’ve read through the documentation, but I can’t find answers to two questions. I’m currently using this code:
‘<?php wp_get_archives(‘type=postbypost&limit=10’); ?>
So, it’s pulling in the last 10 posts. But I only want it to pull in from a specific category AND I want to display the date along with the title of the post. I can’t find any arguments to use to in the template tag to accomplish this. For instance this doesn’t work in trying to pull posts from a certain category:
<?php wp_get_archives(‘type=postbypost&limit=10&category=”music”‘); ?>
Is either one (or both) of these things possible? Any help or advice would be greatly appreciated. Thanks!
- The topic ‘Question about wp_get_archives() abilities’ is closed to new replies.