# Automatically Select Topic Category Based on Post Category?

**URL:** https://meta.discourse.org/t/automatically-select-topic-category-based-on-post-category/229058
**Category:** WordPress
**Created:** [June 5, 2022, 11:12am UTC](https://meta.discourse.org/t/automatically-select-topic-category-based-on-post-category/229058 "2022-06-05T11:12:35Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![carbonrich](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carbonrich/32/274219_2.png) [@carbonrich](https://meta.discourse.org/u/carbonrich)
#### Post date: [October 7, 2022, 6:13pm UTC](https://meta.discourse.org/t/automatically-select-topic-category-based-on-post-category/229058/7 "2022-10-07T18:13:14Z")

</div>

I have a custom post type of _policies_ with a hierarchical custom taxonomy _policy\_categories_ on two levels (parent/child). There are about 45 child categories.

I’ve set [WP Discourse](https://github.com/discourse/wp-discourse) up to publish to a Discourse category of _policies_, but rather than create a huge set of subcategories (having read around this forum) it seems better to create the subcategories as tags.

I’ll have various Wordpress users publishing _policies_ with different experience levels (if it were only me doing this I’d just tag them every time). So to save on an extra step and probably a chunk of support hassle, ideally there’d be a filter to get [WP Discourse](https://github.com/discourse/wp-discourse) to take the Wordpress Categories and add the matching Discourse Tags.

I’d be happy to make sure the categories and tags match IDs/slugs etc. as I’ll be holding any updates of these as admin.

Thank you for your help on this.

---

_[View the full topic](https://meta.discourse.org/t/automatically-select-topic-category-based-on-post-category/229058)._
