Title: &#8220;CMS&#8221; question&#8230;
Last modified: August 18, 2016

---

# “CMS” question…

 *  [JamesM](https://wordpress.org/support/users/righton/)
 * (@righton)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/cms-question/)
 * I am converting my website over to WP and have a couple questions…
 * I only have two pages (Contact and ResumÃ©) that will be static. The other three
   pages need to contain post content (Index, Icons, and Portfolio).
 * My question is, is there a way to duplicate my index.php to two other .php files
   and limit the output to only a certain category… (i.e. – index only displays 
   posts in category ‘main’ and icons only shows posts in category ‘icons’)?
 * I read over on another blog that such a thing USED to be doable before 1.5… is
   it able to be done now?

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

 *  [lawtai](https://wordpress.org/support/users/lawtai/)
 * (@lawtai)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/cms-question/#post-199361)
 * I’m pretty sure you can still do this with query_post. Try searching with that
   keyword and see what you can find.
 *  Thread Starter [JamesM](https://wordpress.org/support/users/righton/)
 * (@righton)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/cms-question/#post-199364)
 * I’m assuming you’re referencing this
 * <?php query_posts(‘p=-1’);?>
 * If this is correct, where do I put it for it to take effect?
 * I tried <?php query_posts(‘cat=1’);?> in my index.php but no luck
 *  [lawtai](https://wordpress.org/support/users/lawtai/)
 * (@lawtai)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/cms-question/#post-199377)
 * here’s a pretty good writeup written by ifelse on query post
 * [http://www.ifelse.co.uk/archives/2005/04/08/query_posts-redux/](http://www.ifelse.co.uk/archives/2005/04/08/query_posts-redux/)
 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/cms-question/#post-199448)
 * And another one that examines a variety of ways to use the WordPress Loop to 
   generate different results at [http://codex.wordpress.org/The_Loop_in_Action](http://codex.wordpress.org/The_Loop_in_Action)
 *  Thread Starter [JamesM](https://wordpress.org/support/users/righton/)
 * (@righton)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/cms-question/#post-199510)
 * I looked into the query_post info, but it seems, no matter where I place that
   code, it doesn’t seem to want to work.
 * The Code I’m using is <?php query_posts(‘cat=1’);?> and I’m trying to use it 
   in my index.php

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

The topic ‘“CMS” question…’ is closed to new replies.

## Tags

 * [websites](https://wordpress.org/support/topic-tag/websites/)

 * 5 replies
 * 3 participants
 * Last reply from: [JamesM](https://wordpress.org/support/users/righton/)
 * Last activity: [21 years, 1 month ago](https://wordpress.org/support/topic/cms-question/#post-199510)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
