Title: Show posts from specific categories
Last modified: August 30, 2016

---

# Show posts from specific categories

 *  [androidgar](https://wordpress.org/support/users/androidgar/)
 * (@androidgar)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/show-posts-from-specific-categories/)
 * hi, I want show posts from specific categories on my blog homepage instead of
   all post recently published. is there any one for help?

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

 *  [Bloke](https://wordpress.org/support/users/bloke/)
 * (@bloke)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/show-posts-from-specific-categories/#post-6655172)
 * Look for the loop. And change it <?php query_posts( ‘cat=33’ ); ?> This will 
   show only posts from the category id 33 for example. Just edit a category and
   it will show the ID.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/show-posts-from-specific-categories/#post-6655223)
 * do not use `query_posts()`
 * – work with `'pre_get_posts'` [http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts](http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts)
 * example
    [http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts#Show_Only_One_Category_on_Home_Page](http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts#Show_Only_One_Category_on_Home_Page)

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

The topic ‘Show posts from specific categories’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/show-posts-from-specific-categories/#post-6655223)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
