Title: Setting up categories
Last modified: August 19, 2016

---

# Setting up categories

 *  [lisharts](https://wordpress.org/support/users/lisharts/)
 * (@lisharts)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/setting-up-categories/)
 * I’m a little stuck with setting up how my categories are displaying. I currently
   have
 * News
    Press About Contact
 * About and contact are just pages but news and press I would like to be able to
   make posts to. However I only want my Main Index Template to display the news
   category. Then I would like Press to be accessed by a link from my header, just
   like the about and contact links. The problem I’m having is I can’t work out 
   how to only show posts from the news catagory on the index. How do I only show
   posts from a particular catagory?
 * Thanks.

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

 *  [dor](https://wordpress.org/support/users/dor/)
 * (@dor)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/setting-up-categories/#post-1164422)
 * I guess you want to read this: [http://codex.wordpress.org/Function_Reference/get_categories](http://codex.wordpress.org/Function_Reference/get_categories)
 *  Thread Starter [lisharts](https://wordpress.org/support/users/lisharts/)
 * (@lisharts)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/setting-up-categories/#post-1164423)
 * I had a quick look but I’m not sure that’s what I’m looking for (excuse me if
   I’m wrong, php is a bit foreign to me still). I don’t want to change or reorder
   the category list, I want to display posts from only one category on the Main
   Index Template file. Will I be able to do that with the code on that page?
 *  [dor](https://wordpress.org/support/users/dor/)
 * (@dor)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/setting-up-categories/#post-1164435)
 * Oh, well, then you need `query_posts`, i guess.
 * [http://codex.wordpress.org/Template_Tags/query_posts](http://codex.wordpress.org/Template_Tags/query_posts)
 *  Thread Starter [lisharts](https://wordpress.org/support/users/lisharts/)
 * (@lisharts)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/setting-up-categories/#post-1164436)
 * That sounds more like it. I’ll give it a go. Thanks for the help, Dor.

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

The topic ‘Setting up categories’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [lisharts](https://wordpress.org/support/users/lisharts/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/setting-up-categories/#post-1164436)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
