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.
Please note that the title you have set in Titles & Meta > Product > Single product only sets the default title. If you have set a custom title before on those products, the global settings will not take effect.
However, you can use the following filter to force the title from the Titles & Meta settings in the front end:
add_action( 'rank_math/frontend/title', function( $generated ) {
if ( ! is_product() ) {
return $generated;
}
global $post;
$title = RankMath\Helper::get_settings( "titles.pt_product_title" );
$title = RankMath\Helper::replace_vars( $title, $post );
return $title;
});
And here’s how you can add a filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope that helps.
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.