Private custom value or setting for topics?


(Coin-coin le Canapin) #1

Hi.
I’ve made a WP widhet that displays the last topics from my Discourse forum.g
I’d like to easily prevent some topics to be displayed that way.

The best solution would be having an admin topic setting that I could turn on or off.
And I could do something like admin actions -> tick a checkbox “don’t display on WP”.
WP side, I’d verify the value of this input before displaying it (or not).

Is it possible to do something like this? Do you see another way? The only alternative that I think of would be to have an input on my WP plugin and add the topic id in it, which forces me to first copy the topic id then go to my wp widget setting in order to add this id.