# Modified wp-discourse to choose category per post

**URL:** https://meta.discourse.org/t/modified-wp-discourse-to-choose-category-per-post/28883
**Category:** WordPress
**Created:** [May 16, 2015, 9:29am UTC](https://meta.discourse.org/t/modified-wp-discourse-to-choose-category-per-post/28883 "2015-05-16T09:29:40Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![paxmanchris](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paxmanchris/32/116126_2.png) [@paxmanchris](https://meta.discourse.org/u/paxmanchris)
#### Post date: [May 16, 2015, 9:29am UTC](https://meta.discourse.org/t/modified-wp-discourse-to-choose-category-per-post/28883/1 "2015-05-16T09:29:41Z")

</div>

With wp-discourse you can only select one discourse category in which your posts get published. In our context we have multiple categories we want to use and to be able to select that per post; blog posts to **Blog** , and product posts to **Products**.

I modified wp-discourse to add the category drop down on the publish meta box, and used it as the published discourse category. I have my code on github, I think its a neat idea and I would like your feedback. Check it out:

- [GitHub - PaxInstruments/wp-discourse: WordPress plugin that lets you use Discourse as the community engine for a WordPress blog · GitHub](https://github.com/PaxInstruments/wp-discourse)

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [May 17, 2015, 7:22am UTC](https://meta.discourse.org/t/modified-wp-discourse-to-choose-category-per-post/28883/2 "2015-05-17T07:22:02Z")

</div>

Very nice. Loads of people have been asking for this. You’ll get the best feedback if you create pull requests for the main repository.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [May 18, 2015, 11:31am UTC](https://meta.discourse.org/t/modified-wp-discourse-to-choose-category-per-post/28883/3 "2015-05-18T11:31:03Z")

</div>

[https://github.com/discourse/wp-discourse/pull/147](https://github.com/discourse/wp-discourse/pull/147)

👍

---

<div class="post-metadata">

### Author: ![Grex315](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grex315/32/115868_2.png) [@Grex315](https://meta.discourse.org/u/Grex315)
#### Post date: [May 18, 2015, 12:29pm UTC](https://meta.discourse.org/t/modified-wp-discourse-to-choose-category-per-post/28883/4 "2015-05-18T12:29:28Z")

</div>

Nice work. Definitely something I was looking for.

---

<div class="post-metadata">

### Author: ![paxmanchris](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paxmanchris/32/116126_2.png) [@paxmanchris](https://meta.discourse.org/u/paxmanchris)
#### Post date: [May 19, 2015, 1:40am UTC](https://meta.discourse.org/t/modified-wp-discourse-to-choose-category-per-post/28883/5 "2015-05-19T01:40:12Z")

</div>

🕶 Let me know if there are any bugs. I also added a field in the options that allows you to force update the category list (Just something I needed while I was setting up a new test discourse site). But I am not sure if its the best way to go about it, or if its needed.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [July 10, 2015, 7:49pm UTC](https://meta.discourse.org/t/modified-wp-discourse-to-choose-category-per-post/28883/6 "2015-07-10T19:49:29Z")

</div>

Would greatly appreciate it if you could get around to the last bit of [formatting fixes](https://github.com/discourse/wp-discourse/pull/147#issuecomment-119400677) required to get the PR approved.

---

<div class="post-metadata">

### Author: ![Grex315](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grex315/32/115868_2.png) [@Grex315](https://meta.discourse.org/u/Grex315)
#### Post date: [July 10, 2015, 8:10pm UTC](https://meta.discourse.org/t/modified-wp-discourse-to-choose-category-per-post/28883/7 "2015-07-10T20:10:14Z")

</div>

yes. i am eagerly awaiting this to be merged as well. also an up rev would be nice so github updater picks it up.

---

<div class="post-metadata">

### Author: ![Grex315](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grex315/32/115868_2.png) [@Grex315](https://meta.discourse.org/u/Grex315)
#### Post date: [October 31, 2015, 5:35pm UTC](https://meta.discourse.org/t/modified-wp-discourse-to-choose-category-per-post/28883/8 "2015-10-31T17:35:33Z")

</div>

@paxmanchris is this still being worked on. Would love to see this get merged.

---

<div class="post-metadata">

### Author: ![nsturis](https://avatars.discourse-cdn.com/v4/letter/n/e9a140/32.png) [@nsturis](https://meta.discourse.org/u/nsturis)
#### Post date: [November 4, 2015, 10:25am UTC](https://meta.discourse.org/t/modified-wp-discourse-to-choose-category-per-post/28883/9 "2015-11-04T10:25:01Z")

</div>

@paxmanchris +1 - it’s exactly what I’m looking for to properly integrate Discourse as a discussion platform.
