Title: Hiding Posts from &#8220;Recent Posts&#8221; Section
Last modified: August 19, 2016

---

# Hiding Posts from “Recent Posts” Section

 *  [techreviewau](https://wordpress.org/support/users/techreviewau/)
 * (@techreviewau)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/hiding-posts-from-recent-posts-section/)
 * Hi,
    I want to hide couple of articles from the Recent Posts section. Not from
   unregistered users, from everyone. I’ve a separate section for those so don’t
   want to duplicate. And I’ve a separate category for those articles too, say “
   Special Category” and the ID of that Category is 2. Now how can I do the following?
   I have:
 * 1. [iPhone](http://www.wordpress.org/)
    2. [iPhone 3G](http://www.wordpress.org/)
   3. [iPhone GPS](http://www.wordpress.org/) 4. and so on
 * Now I want to hide say [iPhone](http://www.wordpress.org/) & [iPhone 3G](http://www.wordpress.org/)(
   which are under “Special Category”) from the Recent Post list. How can I achieve
   that? I do host my own site and like million others I use WordPress.
 * Please help.
 * Regards.

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

 *  [gregbarr23](https://wordpress.org/support/users/gregbarr23/)
 * (@gregbarr23)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/hiding-posts-from-recent-posts-section/#post-851090)
 * I’m wondering the same thing, and think the answer, which is for now over my 
   head, lies in this thread: [http://wordpress.org/support/topic/200645?replies=3](http://wordpress.org/support/topic/200645?replies=3)
 * I’m gonna hop into that discussion since those guys clearly know how to do what
   we’re looking for. Come along! : )
 * (Oh wait, I just realized they’re talking about showing/hiding posts in a page,
   we’re both talking widget. Still, I bet they know.)
 *  Thread Starter [techreviewau](https://wordpress.org/support/users/techreviewau/)
 * (@techreviewau)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/hiding-posts-from-recent-posts-section/#post-851097)
 * thanks mate…
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/hiding-posts-from-recent-posts-section/#post-851098)
 * 1. Please, don’t double post – I am fast with the delete button.
    2. Try to find
   a recent posts plugin that has category control.
 *  Thread Starter [techreviewau](https://wordpress.org/support/users/techreviewau/)
 * (@techreviewau)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/hiding-posts-from-recent-posts-section/#post-851101)
 * You sure are fast mate. I was just trying to get attention to get it fixed ASAP,
   that’s all. Anyway, I’ve resolved this issue and here’s the solution if anyone
   else need it in future.
 * instead of this:
    <?php //wp_get_archives(‘type=postbypost&limit=15’); ?>
 * you’ve to do this:
    -  <?php $recent = new WP_Query(“showposts=15&cat=-2”); while($recent->have_posts()):
      $recent->the_post();?>
    - 
    - <?php endwhile; ?>
 * Add “&cat=-2”..Where id # 2 is my [iPhone](http://www.iphonewiki.com.au/) & [iPhone 3G](http://www.iphonewiki.com.au/)
   category.
 * Thanks gusy.
    [sig moderated]

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

The topic ‘Hiding Posts from “Recent Posts” Section’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 4 replies
 * 3 participants
 * Last reply from: [techreviewau](https://wordpress.org/support/users/techreviewau/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/hiding-posts-from-recent-posts-section/#post-851101)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
