Title: Display posts from certain categories only?
Last modified: August 20, 2016

---

# Display posts from certain categories only?

 *  [futurepocket](https://wordpress.org/support/users/futurepocket/)
 * (@futurepocket)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/display-posts-from-certain-categories-only/)
 * I know you can exclude posts from certain categories from being displayed, but
   the category I am excluding has far too many posts so it’s destroying my page
   load time. What code can I use instead to just display posts from certain categories.

Viewing 1 replies (of 1 total)

 *  [peredur](https://wordpress.org/support/users/peredur/)
 * (@peredur)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/display-posts-from-certain-categories-only/#post-2325622)
 * Sounds like a job for category lists.
 * At its simplest, you could create two categories called ‘include’ and ‘exclude’,
   or whatever, and allocate all your posts to one of them. Then you can replace
   your blog page—which includes everything—with a category list of posts in the
   category ‘include’ (or whatever you called it).
 * Of course, it means going through all your posts to allocate them to one category
   or another. There’s probably a way of doing that in SQL if you’re familiar enough
   with WP’s database structure for categories.
 * HTH
 * PAE

Viewing 1 replies (of 1 total)

The topic ‘Display posts from certain categories only?’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [peredur](https://wordpress.org/support/users/peredur/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/display-posts-from-certain-categories-only/#post-2325622)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
