Hello,
Thank you for contacting Rank Math today.
Rank math can only modify the title and keywords for existing pages. To edit this you need to head over to the page > edit and add the title & keyword.
If you need to modify this programmatically you can use the following flters:
— To change the title
/**
* Filter to change the page title.
*
* @param string $title
*/
add_filter( 'rank_math/frontend/title', function( $title ) {
return $title;
});
— To change keywords
/**
* Allow changing the meta keywords from the default Focus Keywords.
*
* @param string $keywords Keywords.
*/
add_filter( 'rank_math/frontend/keywords', function( $keywords ) {
return $keywords;
});
Unfortunately we currently don’t offer customized solutions. To implement this you will need to hire a developer to help you.
Hope that helps. If you have any further question(s), please let us know. Thank you.
Thank you so much. I think I can make it work ! And what about adding the search query pages in the sitemap.xml? Do you have snippet for this as well?
Looking forward to your reply as well.
Hello,
We usually recommend keeping search results pages from being indexed by search engines. Search results can be seen as sparse content and create duplicate content issues. If you still want them to be indexed, you can disable the option to noindex search results in Rank math > Titles & Meta > Misc/Other pages
Hope that helps. 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.