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.
By default, the keywords feature is not included in the Titles & Meta settings.
However, to automate the focus keywords on your post/pages, please follow the steps on this link:
https://rankmath.com/kb/how-to-automate-the-insertion-of-focus-keyword/
I hope that helps.
Thank you.
I referred to the mentioned link
But when I add the mentioned codes
The site gives an error
But it works when the codes I add to add tags to keyboard focus are added correctly
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting WordPress.
Hello,
Can you please share the error log with us?
Having an error log will help us determine what is causing the critical error on your website.
You can follow this guide to enable debugging in WordPress
https://wordpress.org/support/article/debugging-in-wordpress/ or you can get in touch with your web host, they will help you locate the log file.
You can also try to limit the number of posts and see if that helps.
You can limit the number of posts that you process each time by setting a limit on the posts like so:
'posts_per_page' => 100
You can then add an offset to the function as well to continue adding the focus keywords to newer posts. So, after changing the first 100 posts you add an offset of 100 to the function like so:
'offset' => 100
You can continue to increase the offset by 100 until it runs through all of the posts.
Each time you run the function, you can add 100 to the offset value like,
1st time : 'offset' => 0,
2nd time : 'offset' => 100,
3rd time : 'offset' => 200,
And so on...
Hope this helps solve your issues.
Looking forward to helping 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.