Title: do not hide the article
Last modified: August 20, 2016

---

# do not hide the article

 *  [hanbal](https://wordpress.org/support/users/hanbal/)
 * (@hanbal)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/do-not-hide-the-article/)
 * I do not want to display the article of the catid 3 in Home, so i use the code
   as below in the index.php of my theme:
    <?php if (have_posts()) : query_posts(
   $query_string .’&cat=-3′); ?>
 * BUT, now, i add a new page named “my blog”, and choose the template of “blog”,
   in the blog template, i copy the code all of the index.php, and when i visit 
   the “my blog”, the article of the catid 3 will display, CAN NOT Hide.
 * Please help me! Thanks!

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

 *  [WP Libra](https://wordpress.org/support/users/wpbum/)
 * (@wpbum)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/do-not-hide-the-article/#post-2773797)
 * I’d just return your code to normal and try a plugin like
 * [http://wordpress.org/extend/plugins/ultimate-category-excluder/](http://wordpress.org/extend/plugins/ultimate-category-excluder/)
 *  Thread Starter [hanbal](https://wordpress.org/support/users/hanbal/)
 * (@hanbal)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/do-not-hide-the-article/#post-2773835)
 * Hi, thanks for your reply.
 * This plugin can not perform its function when i set a page as posts page.

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

The topic ‘do not hide the article’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [hanbal](https://wordpress.org/support/users/hanbal/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/do-not-hide-the-article/#post-2773835)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
