Hello,
Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.
please add following filter code in your theme’s functions.php file:
add_filter( 'rank_math/frontend/title', function( $title ) {
if ( in_category( '3' ) ) { // add your category ID here
$title = 'my text';
}
return $title;
});
Don’t forget to change the category ID.
I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance.
Thanks a lot for the quick answer.
The code works very fine.
Always high quality support.
Have a nice day!
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.