Archived topic
How to get “Resolved” label on the list of topics
4 replies · Started by Milan on August 19, 2021
How to get “Resolved” label on the list of topics page as this one. I’m using bbpress but for resolved topics, this label is not there. Can you please tell me how to enable that.
Thanks.
Hi there,
I'm not sure what exactly Tom used here but this PHP snippet should achieve a similar result.
function my_resolve_title($id){
global $topic;
if ('yes' == $topic->topic_resolved)
return sprintf(__('[Resolved] %s'), $topic->topic_title);
return $topic->topic_title;
}
add_filter( 'topic_title', 'my_resolve_title');
It'll need some CSS for specific styling.
Hi, I tried this but it does not seem to be working in my case. Here is the link https://gstdoctor.in/
Milan
Got it to work, please mark this as closed.
Nice one. Glad you got it to work. :D