Title: mrgravity's Replies | WordPress.org

---

# mrgravity

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to exclude a category from the main page and searches without a plugin?](https://wordpress.org/support/topic/how-to-exclude-a-category-from-the-main-page-and-searches-without-a-plugin/)
 *  Thread Starter [mrgravity](https://wordpress.org/support/users/mrgravity/)
 * (@mrgravity)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/how-to-exclude-a-category-from-the-main-page-and-searches-without-a-plugin/#post-1344949)
 * Fantastically. It does everything I wanted it to do perfectly with no unwanted
   side effects.
 * Thanks alot!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to exclude a category from the main page and searches without a plugin?](https://wordpress.org/support/topic/how-to-exclude-a-category-from-the-main-page-and-searches-without-a-plugin/)
 *  Thread Starter [mrgravity](https://wordpress.org/support/users/mrgravity/)
 * (@mrgravity)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/how-to-exclude-a-category-from-the-main-page-and-searches-without-a-plugin/#post-1344946)
 * You’re awesome t31os_
 * Thank you so much for this.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to exclude a category from the main page and searches without a plugin?](https://wordpress.org/support/topic/how-to-exclude-a-category-from-the-main-page-and-searches-without-a-plugin/)
 *  Thread Starter [mrgravity](https://wordpress.org/support/users/mrgravity/)
 * (@mrgravity)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/how-to-exclude-a-category-from-the-main-page-and-searches-without-a-plugin/#post-1344930)
 * t31os_:
    Your code didn’t work for me, but I’m not entirely sure where to add
   it to function.php either. I added it right up top, and it errored out immediately.
 * vangrog:
    Your code didn’t work either, but my php line doesn’t look quite like
   that. Mine looks like this:
 * `<?php while ( have_posts() ) : the_post() ?>`
 * And when I replace it with yours, immediate error out.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to exclude a category from the main page and searches without a plugin?](https://wordpress.org/support/topic/how-to-exclude-a-category-from-the-main-page-and-searches-without-a-plugin/)
 *  Thread Starter [mrgravity](https://wordpress.org/support/users/mrgravity/)
 * (@mrgravity)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/how-to-exclude-a-category-from-the-main-page-and-searches-without-a-plugin/#post-1344910)
 * Yes, on the main index page of the wordpress and search pages. See we have user
   generated content, so that means Adult stuff too. And when they do, it doesn’t
   need to appear on the main/front page of the wp.
 * Thanks!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to exclude a category from the main page and searches without a plugin?](https://wordpress.org/support/topic/how-to-exclude-a-category-from-the-main-page-and-searches-without-a-plugin/)
 *  Thread Starter [mrgravity](https://wordpress.org/support/users/mrgravity/)
 * (@mrgravity)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/how-to-exclude-a-category-from-the-main-page-and-searches-without-a-plugin/#post-1344904)
 * Actually, wordpress is 2.8.6. Not 2.8.5 as it says over there —>
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [How do you target a frame in your address bar?](https://wordpress.org/support/topic/how-do-you-target-a-frame-in-your-address-bar/)
 *  Thread Starter [mrgravity](https://wordpress.org/support/users/mrgravity/)
 * (@mrgravity)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/how-do-you-target-a-frame-in-your-address-bar/#post-1299776)
 * Thanks for your help, I was able to figure out the answer here.
 * [http://answers.yahoo.com/question/index?qid=20091206094107AAkMmEf&r=w](http://answers.yahoo.com/question/index?qid=20091206094107AAkMmEf&r=w)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [WP 2.8.4 — Exclude Pages From Search?](https://wordpress.org/support/topic/wp-284-exclude-pages-from-search/)
 *  Thread Starter [mrgravity](https://wordpress.org/support/users/mrgravity/)
 * (@mrgravity)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/wp-284-exclude-pages-from-search/#post-1296167)
 * Thanks a million for your help. I followed the instructions when upgrading, and
   then used the plugin. PERFECTION!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [WP 2.8.4 — Exclude Pages From Search?](https://wordpress.org/support/topic/wp-284-exclude-pages-from-search/)
 *  Thread Starter [mrgravity](https://wordpress.org/support/users/mrgravity/)
 * (@mrgravity)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/wp-284-exclude-pages-from-search/#post-1296159)
 * Thanks alot mercime. I’ll check out those links. Will upgrading to 2.8.6 cause
   some of my stuff to not work? This is my first wordpress. Are there general guidelines
   I should follow when upgrading?

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