bbPress titles ‘untitled’
-
Today I noticed that with The SEO Framework (TSF) on bbPress profile titles are not shown correctly.
If I disable TSF the titles are empty, but that’s fixed with this code./* ---------------------------------------------------------------- // Fix broken BBPress titles ---------------------------------------------------------------- */ function ajdg_bbp_title($parts) { if (empty($parts['title']) && is_bbpress()) { $parts['title'] = trim(bbp_title('', '')); } return $parts; } add_filter('document_title_parts', 'ajdg_bbp_title');
Yes, bbPress is not free of fault as well in this. But the proposed fix/workaround doesn’t work as long as The SEO Framework is enabled.
I found some similar issues with other plugins and TSF, and all were dismissed as the other plugin having issues. But I lean to an issue in TSF as this is yet another plugin that has this (or a very similar) issue in combination with TSF.
Regardless of where it breaks. I need/want this to work and the only logical solution I can find is that TSF either ignores bbPress profile page titles, or stops overwriting them. Since Topic and Reply titles work fine with TSF, well… TSF is missing something I think.
For example what can change is that TSF checks if the title is empty. If not, use the original string (instead of setting it to ‘untitled’) if TSF doesn’t know what to do with it. Simple enough.
Please advise!
The page I need help with: [log in to see the link]
- The topic ‘bbPress titles ‘untitled’’ is closed to new replies.