Title: [Platform] problem with viewing categories
Last modified: August 20, 2016

---

# [Platform] problem with viewing categories

 *  [donpelajo](https://wordpress.org/support/users/donpelajo/)
 * (@donpelajo)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/platform-problem-with-viewing-categories/)
 * Hi to all,
    i have a problem using custom viewing categories.
 * Here is my code to view cat 12 in page N
 * <?php
    $query= ‘cat=12&orderby=date&order=DESC’; query_posts($query); ?>
 * I want not to view the same category in the main page (the one that is loaded
   when you enter my website) so i do in the index.php file
 * <?php
    if (is_home()) { query_posts($query_string . “&cat=-12”); } ?>
 * Here it’s all ok, if i do it for one category. If i do this for a lot of categories,
   it seems to me like one cat overrides the other, so if i.e. i specify for news
   page, i don’t view news cat except for news page, but if i do it for news and
   rewiews, i do not view reviews but i view news (always in the main page). Why?
 * Thanks
 * I did these steps
 * 1) Create a category
    2) View in the mySQL table the name id 3) Create a copy
   of index setting the first code 4) Changing the index.php setting the other code
   5) Publishing posts choosing a cat

The topic ‘[Platform] problem with viewing categories’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [donpelajo](https://wordpress.org/support/users/donpelajo/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/platform-problem-with-viewing-categories/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
