Title: nikoklein's Replies | WordPress.org

---

# nikoklein

  [  ](https://wordpress.org/support/users/nikoklein/)

 *   [Profile](https://wordpress.org/support/users/nikoklein/)
 *   [Topics Started](https://wordpress.org/support/users/nikoklein/topics/)
 *   [Replies Created](https://wordpress.org/support/users/nikoklein/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/nikoklein/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/nikoklein/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/nikoklein/engagements/)
 *   [Favorites](https://wordpress.org/support/users/nikoklein/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Can I choose what category posts to show on the first page?](https://wordpress.org/support/topic/can-i-choose-what-category-posts-to-show-on-the-first-page/)
 *  [nikoklein](https://wordpress.org/support/users/nikoklein/)
 * (@nikoklein)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/can-i-choose-what-category-posts-to-show-on-the-first-page/#post-1236420)
 * One addendum: I had to insert this additional code to make sure the category 
   pages that linked through index.php didn’t also redact the categories I wanted
   to eliminate from my first page. See below:
 *     ```
       <?php
       $homepage = "/";
       $currentpage = $_SERVER['REQUEST_URI'];
       if($homepage==$currentpage) { query_posts($query_string . "&cat=-3,-5"); }
        //Block categories 3, 5 from main page
       ?>
       ```
   

Viewing 1 replies (of 1 total)