Title: Recent post call (exclude category)
Last modified: August 18, 2016

---

# Recent post call (exclude category)

 *  Resolved [bluehorse2](https://wordpress.org/support/users/bluehorse2/)
 * (@bluehorse2)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/recent-post-call-exclude-category/)
 * Hi I’m using
 * `<?php get_archives('postbypost', '15'); ?>`
 * To call the last 15 posts in my sidebar, can anyone tell me how to exclude a 
   category, say the category with ID #1.
 * I can do it with wp_get_archive but not with get_achive.
 * Thanks in advance for any help or links to information I’ve missed. 😉 Merry 
   Xmas!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [zoutesnor](https://wordpress.org/support/users/zoutesnor/)
 * (@zoutesnor)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/recent-post-call-exclude-category/#post-494386)
 * This can’t be done with get_archives, I personally use multiple loops to do things
   like this.
 *  Thread Starter [bluehorse2](https://wordpress.org/support/users/bluehorse2/)
 * (@bluehorse2)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/recent-post-call-exclude-category/#post-494387)
 * Thanks, no worries.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Recent post call (exclude category)’ is closed to new replies.

## Tags

 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [recent](https://wordpress.org/support/topic-tag/recent/)

 * 2 replies
 * 2 participants
 * Last reply from: [bluehorse2](https://wordpress.org/support/users/bluehorse2/)
 * Last activity: [19 years, 5 months ago](https://wordpress.org/support/topic/recent-post-call-exclude-category/#post-494387)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
