Title: Exclude Category?
Last modified: October 16, 2017

---

# Exclude Category?

 *  Resolved [kareemsayeed](https://wordpress.org/support/users/kareemsayeed/)
 * (@kareemsayeed)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-category-50/)
 * Hi, I’ve been using this awesome plugins for 2+ years. I wanted to know if I 
   can add to my functions.php a code to exclude a specific category?
 * Best,

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

 *  Thread Starter [kareemsayeed](https://wordpress.org/support/users/kareemsayeed/)
 * (@kareemsayeed)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-category-50/#post-9593404)
 * OR Post type…
 *  Plugin Author [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * (@sebd86)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude-category-50/#post-9594975)
 * [@kareemsayeed](https://wordpress.org/support/users/kareemsayeed/) You can filter
   the query of posts returned. If you have not done so you will need to copy the
   Auto Load Next Post template into your theme and modify the loop.
 * Documentation on how to change the loop is already provided here on WordPress.
   org
    -  [Category](https://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters)
    -  [Post Type](https://codex.wordpress.org/Class_Reference/WP_Query#Type_Parameters)
 *  Thread Starter [kareemsayeed](https://wordpress.org/support/users/kareemsayeed/)
 * (@kareemsayeed)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/exclude-category-50/#post-9603329)
 * Hi Sebastein, Thank you for taking time to respond to my question. I’ve spent
   a few hours trying to figure this out so I had a follow-up question.
 * I’ve created a “auto-load-next-post” folder in my theme folder with content-partial.
   php. As for the loop, I don’t know exactly how to modify my functions.php file
   because I still want this category “Instagram” to appear when people access mysite.
   com/instagram.
 * How can I only modify it so this category is hidden from your plugin?
 *  Plugin Author [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * (@sebd86)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/exclude-category-50/#post-9604320)
 * Try something like this.
 * [https://gist.github.com/seb86/bf4c2b46f480f77333170136d02376bb](https://gist.github.com/seb86/bf4c2b46f480f77333170136d02376bb)
 * Hope it works.

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

The topic ‘Exclude Category?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/auto-load-next-post_ccaf26.svg)
 * [WordPress Infinite Scroll by Auto Load Next Post](https://wordpress.org/plugins/auto-load-next-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-load-next-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-load-next-post/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-load-next-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-load-next-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-load-next-post/reviews/)

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [exclude](https://wordpress.org/support/topic-tag/exclude/)

 * 4 replies
 * 2 participants
 * Last reply from: [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/exclude-category-50/#post-9604320)
 * Status: resolved