# בחר אוטומטית קטגוריית נושא על סמך קטגוריית הפוסט?

**URL:** <https://meta.discourse.org/t/automatically-select-topic-category-based-on-post-category/229058>\
**Category:** WordPress\
**Created:** [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:** 4

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [7 ביוני,‏ 2022,‏ 12:45pm UTC](https://meta.discourse.org/t/automatically-select-topic-category-based-on-post-category/229058/4 "2022-06-07T12:45:36Z")

</div>

> [@oopsyscoops](#):
>
> I believe you mean `wpdc_publish_post_category`? `wpdc_change_post_category` doesn’t appear to actually exist. It’s just a custom function name that can be anything, correct?

Yup that’s right, apologies for the typo.

> [@oopsyscoops](#):
>
> Concerning adding this as an official feature, I don’t think it would be that big of a can of worms, considering two options:
> 
> 1. The **Force Category Update** option already exists. This could be extended to a feature that forces Discourse/WordPress categories to always be in sync.
> 
> or
> 
> 1. Maybe they don’t need to be in sync at all, but rather if a category doesn’t exist in Discourse, it simply creates it.

There’s a big difference between reading a list of categories via the API (force category update) and automatically syncing categories themselves between Wordpress and Discourse.

---

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