I have been able to make my first plugin for Wordpress and Discourse.
It let you change the wordpress theme not only to get content from articles - but now you can mix articles and forum posts. I have been able to recode the widgets for the colormag theme.
Im not a coder I have to say, just a sparetime coder who find it funny - so the code might be a little buggy and not the most beautyful
I did add 2 new widgets and by them you can either get the latest posts from a specific forum category (choosen from a dropdown) or the latest posts from your site.
I won’t share the code since it’s very, very messy, I dont’ even made any Wordpress setting.
But basically, it display the last created topics and I excluded some less interesting categories.
I use a WP CRON task to update the content of the widget once a day.