Hello,
Thank you for getting in touch with us.
You can use the following filters to change title and description by fetching and assigning them values from your custom fields:
1. Filter to change the Title.
/**
* Filter to change the page title.
*
* @param string $title
*/
add_filter( 'rank_math/frontend/title', function( $title ) {
return $title;
});
2. Filter to change the meta description.
/**
* 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;
});
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Amazing! I’ll give it a try and return when I have tested this out 😀
– Thanks
Hello,
If you have any further question(s), please let us know.
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.