# bbPress: Change the Maximum Topic Title Length

> Raises or lowers the maximum number of characters allowed in bbPress topic titles (80 by default).

- Type: PHP
- Runs: Run everywhere
- Category: [Users](https://wpide.com/library/category/users/)
- Tags: bbpress, topics, forums
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/bbpress-topic-title-length/

## Code

```php
if ( ! function_exists( 'bbp_get_title_max_length' ) ) {
    return;
}

$wpide_bbp_title_length = 120;

add_filter( 'bbp_get_title_max_length', function () use ( $wpide_bbp_title_length ) {
    return $wpide_bbp_title_length;
} );
```

## Notes

Very long titles can break forum layouts on phones; 100 to 120 is a sensible maximum.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "bbPress: Change the Maximum Topic Title Length" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
