First a question … does the Discourse Wordpress plugin allow for posts to be published to Discourse in more than one category?
The following post is old and possibly outdated, but is it still true in that Discourse only publishes to ONE category as defined in the plugin settings?
https://meta.discourse.org/t/plugin-to-allow-choice-of-discourse-category/18853/11
I noticed the Plugin structure is different since the post above, but I couldn’t tell if the current code (found in /lib/discourse.php) would allow for multiple categories.
… code snippet closest to a match with the above post (in /lib/discourse.php)
$category = $options['publish-category'];
if ( $category === '' ) {
$categories = get_the_category();
foreach ( $categories as $category ) {
if ( in_category( $category->name, $postid ) ) {
$category = $category->name;
break;
}
}
}
The feature I would like to see is category options that can be selected near or below the checkbox option to publish to Discourse. These categories would match those found at the Discourse forums.
Until then, I’ll make do with manually switching the categories for now
Here’s a screenshot to clarify what I’m looking for.