bbPress has own function that generates title used in HEAD TITLE tag. But, that is not working with new themes with title-tag feature support.

Until the bbPress core is updated to work with new method WordPress generates TITLE, this is a small piece of code that can fix this problem.

add_filter('document_title_parts', 'bbhelp_club_document_title_parts');
function bbhelp_club_document_title_parts($parts) {
    if (empty($parts['title']) && is_bbpress()) {
        $parts['title'] = trim(bbp_title('', ''));
    }

    return $parts;
}

You can add this code into the theme functions.php file.

Please, take a few seconds and rate this answer
Rating: 5.0/5. From 1 vote. Votes Distribution.
Please wait...

Question answered by

Milan Petrovic

Programmer since the age of 12 and now WordPress developer with more than 8 years of WordPress experience, author of more than 100 plugins and more than 20 themes.

Dev4Press - Premium plugins for your WordPress and bbPress powered website.

The Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

WP Rocket - Make WordPress Load Fast in a Few Clicks