Modified wp-discourse to choose category per post


(Paxmanchris) #1

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:


Request - Wordpress plugin, Publish to Discourse option to include category
Plugin to Allow Choice of Discourse Category?
(Erlend Sogge Heggen) #2

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.


(Erlend Sogge Heggen) #3

https://github.com/discourse/wp-discourse/pull/147

:thumbsup:


(Steven Greco) #4

Nice work. Definitely something I was looking for.


(Paxmanchris) #5

:sunglasses: 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.


(Erlend Sogge Heggen) #6

Would greatly appreciate it if you could get around to the last bit of formatting fixes required to get the PR approved.


(Steven Greco) #7

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


(Steven Greco) #8

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


(Noah Sturis) #9

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