Title: Shortcode &#8211; excluding categories
Last modified: August 30, 2016

---

# Shortcode – excluding categories

 *  Resolved [pault83](https://wordpress.org/support/users/pault83/)
 * (@pault83)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-excluding-categories/)
 * Hello, I’m trying to use the shortcode on a page, and make it exclude categories
   so that it’s only pulling posts from a specific subset of posts. I can’t seem
   to get it to work no matter what I try, including these variations:
 * [crp limit=”6″ heading=”0″ cache=”0″ exclude_categories=”advice, inspiration”]
   [
   crp limit=”6″ heading=”0″ cache=”0″ exclude_categories=”54, 63″] [crp limit=”
   6″ heading=”0″ cache=”0″ exclude_cat_slugs=”advice, inspiration”]
 * Am I doing something wrong or is there a problem?
 * Thanks
 * [https://wordpress.org/plugins/contextual-related-posts/](https://wordpress.org/plugins/contextual-related-posts/)

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

 *  Plugin Author [WebberZone](https://wordpress.org/support/users/webberzone/)
 * (@webberzone)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-excluding-categories/#post-6562437)
 * With the current version, you will need to add this to your Related Posts Settings
   page.
 * Are you doing this on a post by post basis with different categories?
 * I’ll add this as one of the things to add to the plugin in the next version to
   bring back this functionality. In previous versions, this was a result of a massive
   performance issue because it needed an unnecessary extra queries for those not
   using this feature.
 *  Thread Starter [pault83](https://wordpress.org/support/users/pault83/)
 * (@pault83)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-excluding-categories/#post-6562441)
 * Actually I’m trying to make it so that on one specific static page, it shows 
   a set of specific related posts. So I added a bunch of posts to a new category,
   and then tried to exclude all the other categories. I guess there’s no way to
   do that in the current version? It would be great if it was possible to specify
   a category in the shortcode to only show related posts from that category.
 *  Plugin Author [WebberZone](https://wordpress.org/support/users/webberzone/)
 * (@webberzone)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-excluding-categories/#post-6562468)
 * Include categories is on the charts, but in a paid addon.
 * From what you mentioned above, you could potentially add the related posts using
   the Manual Posts in the meta box in your page.
 *  Thread Starter [pault83](https://wordpress.org/support/users/pault83/)
 * (@pault83)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-excluding-categories/#post-6562470)
 * Oh wow, I hadn’t even noticed that box. Thanks! It works perfectly.
 *  Plugin Author [WebberZone](https://wordpress.org/support/users/webberzone/)
 * (@webberzone)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-excluding-categories/#post-6562526)
 * You’re welcome.

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

The topic ‘Shortcode – excluding categories’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [WebberZone](https://wordpress.org/support/users/webberzone/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-excluding-categories/#post-6562526)
 * Status: resolved