How to print focus keywords & increase limit from 5 to 15?

#83892
  • Resolved Puneet
    Rank Math free

    1. I always write focus keyword in posts but don’t know where they display (surprisingly not in Head Section) why?
    2. I tried out to print the focus keyword in the head section but after echo, there is no space between the keywords. Print as Keyword1,Keyword2,Keyword3,K4,K5 but I want to print Keyword1, Keyword2, Keyword3, K4, K5
    3. How to increase the focus keyword limit on the whole website from 5 keywords to 15 or more?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for getting in touch with us. That is a good question and we get it all the time.

    Google does not honor Meta Keywords for quite a long now so we never added them to the plugin.

    You can read more about that here:
    https://webmasters.googleblog.com/2009/09/google-does-not-use-keywords-meta-tag.html

    About the second question, you would need to modify the string inside PHP to add those spaces as you want.

    About your third question, you can just add the following code at the end of your functions.php file:

    add_filter( 'rank_math/focus_keyword/maxtags', function() {
        return 15; // Number of Focus Keywords. 
    });

    Hope that helps. If you have any further question(s), please let us know. Thank you.

    Puneet
    Rank Math free

    What should be the code for echo focus keyword with space? I have tried various forms of code but sometimes print NULL or without space.

    Hello,

    This is the filter you should use to show the keyword meta tag on your site:

    
    /**
     * Add <meta name="keywords" content="focus keywords">.
     */
    add_filter( 'rank_math/frontend/show_keywords', '__return_true');
    

    Hope that helps. If you have any further question(s), please let us know. Thank you.

    Puneet
    Rank Math free

    Works but not print with space after one keyword. Ex. Keyword1,Keyword2,etc

    Hello,

    We are sorry but we do not have an option to add the space after the comma after each focus keyword.

    If you need help with anything else, please open a new support ticket here so we can help.

    We are always here for assistance.

    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.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘How to print focus keywords & increase limit from 5 to 15?’ is closed to new replies.