Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
This variable will not work on bbPress user profiles because these pages store user data in a different variable $bb_current_user. You can workaround this in two ways:
1). You can register a custom replacement variable for these pages using the following filter:
/**
* Filter to add custom variables
*/
add_filter( 'rank_math/vars/replacements', function( $vars ) {
return $vars;
});
2). You can create custom titles/descriptions targeting the profile pages by using the following filters and some custom code to get the user id from bbPress:
/**
* Filter to change the page title.
*
* @param string $title
*/
add_filter( 'rank_math/frontend/title', function( $title ) {
return $title;
});
/**
* Allow changing the meta description sentence from within the theme.
*
* @param string $description The description sentence.
*/
add_filter( 'rank_math/frontend/description', function( $description ) {
return $description;
});
Looking forward to helping you. Thank you.
​​​​​​​
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.