# Remove a category in a Loop WP Theme

**URL:** <https://forum.pinegrow.com/t/remove-a-category-in-a-loop-wp-theme/192>\
**Category:** WordPress\
**Tags:** custom-wp-query\
**Created:** [September 14, 2016, 9:37am UTC](https://forum.pinegrow.com/t/remove-a-category-in-a-loop-wp-theme/192 "2016-09-14T09:37:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deluxdelx](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deluxdelx](https://forum.pinegrow.com/u/deluxdelx)\
**Post date:** [September 14, 2016, 9:37am UTC](https://forum.pinegrow.com/t/remove-a-category-in-a-loop-wp-theme/192/1 "2016-09-14T09:37:53Z")

</div>

Good afternoon. In WP theme I created in Pinegrow in a given loop, like that Category 5 was not shown in this loop. How to do this in Pinegrow?

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [September 17, 2016, 9:04am UTC](https://forum.pinegrow.com/t/remove-a-category-in-a-loop-wp-theme/192/2 "2016-09-17T09:04:24Z")

</div>

- From The loop settings, create a **Custom WP Query**

Note: We have [a documentation](http://docs.pinegrow.com/wordpress-themes/create-a-loop-with-a-custom-post-type) with an example of Custom WP query.

- Name it **cat\_filter** for example

- From the **Category parameters** section, enter the categories ID that you want to remove.

Note: [Reveal IDs](https://wordpress.org/plugins/reveal-ids-for-wp-admin-25/) is a cool plugin if you want to easily find categories IDs.

- From **Category Opts** , set to **not in** so the categories will be excluded from the loop.

- Try your loop 🙂

**Related documentation** :  
[https://codex.wordpress.org/The\_Loop](https://codex.wordpress.org/The_Loop)
