When using the RankMath plugin for your SEO, you can add focus keywords, but those keywords will not appear on the source code, meaning search engines will not detect them. RankMath follows Google’s statement that they will no longer use meta keywords because of abuse, so they didn’t show it by default.
However, if you believe that showing meta keywords in the post is still useful, you can add the following command on the rank-math.php file.
/**
* Add <meta name="keywords" content="focus keywords">.
*/
add_filter( 'rank_math/frontend/show_keywords', '__return_true');
Follow these steps:
1. Open the plugin file editor
2. Select Rank Math SEO
3. At the bottom of the file add the command above.
Check the source code of the post, now you should see the meta keywords as below.
Pro tips:
You better create a child theme and copy the file rank-math.php under the child’s theme folder. This is to avoid losing the setting above when you update the Rank Math plugin.