Adding single topic title into meta title for SEO
Hoping someone has solved for this…
I’m trying to make sure that all single topic pages are unique for SEO purposes. Currently, topics simply have the format “Forum – [Forum Name] – [Site Name]”. I want to prepend the topic so that the meta title tag format is “[Topic Name] – [Forum Name] – [Site Name]”.
I do not want to use Yoast or any other plugin, as this should be a pretty simple change.
The problem I am having is two fold:
1. In functions.php, I am unable to use anything like is_bbpress() or bbp_is_single_topic() to tell if I am on a specific page.
2. I am unable to get the bbPress topic title ahead of the pre_get_document_title() function so that I can prepend it into the meta header.
Any help would be greatly appreciated. This is for a WordPress/BuddyPress/bbPress integration.
Thanks in advance
- You must be logged in to reply to this topic.