Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
Could you please share the affected page URLs so we can check as well? You can add it to the sensitive data section by editing your first post
It is completely secure, and only our support staff has access to that section.
Meanwhile, you can use and customize this filter to set the title of those dynamic pages:
/**
* Filter to change the page title.
*
* @param string $title
*/
add_filter( 'rank_math/frontend/title', function( $title ) {
return $title;
});
Looking forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hi just making sure you received my reply?
Hello,
Apologies for the delay as we currently have a high volume of tickets here in our support forums.
The title is being generated dynamically by BuddyPress and isn’t attached to the physical page on the back end.
That’s why the metadata you have added to the snippet editor isn’t being applied on the front end, ending in a 404.
However, here’s a sample filter you can use and modify to get the title from the current topic:
add_filter( 'rank_math/frontend/title', function( $title ) {
$url = home_url($_SERVER['REQUEST_URI']);
if(strpos($url, '/coaches/')) {
return "";
}
return $title;
});
You may also get in touch with BuddyPress so they can assist you with which filter should you use to get the title of the archive and single post type from the database.
And here’s a guide to adding the code to the website:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Looking forward to helping you.