bbpress is a nice forum plugin that works with WordPress.
In bbpress when you create a topic.. for example “How to create a bbpress topic?” , the title you get when viewing the topic is something like “Topic: How to create bbpress topic?”
.If you want to remove the “Topic” from bbpress forum topics, you can do it using “bbp_title” filter.
This is explained in the following code
| PHP | | copy code | | ? |
| 01 | <?php |
| 02 | |
| 03 | add_filter('bbp_title', 'custom_topic_title_bbp', 10, 2); |
| 04 | |
| 05 | function custom_topic_title_bbp($title, $postarr) { |
| 06 | $title = str_replace("Topic: ", "", $title); |
| 07 | return $title; |
| 08 | } |
| 09 | |
| 10 | ?> |
If you don’t know how to write code, just download the very tiny plugin below from here and activate it.
Once you activate this plugin you’ll see your topic title as “How to create a topic?” instead “Topic: How to create a Topic?”