Make An inquiry

#283287
  • Resolved Anthony Ejefoh
    Rank Math free

    Goodday Rank Math,
    I am an owner of 27 Newly websites and I would Like to purchase the premium SEO Plugin. I want to make an inquiry regarding 2 Questions.

    1) Regarding the Rank Math Instant index. Can I use One API key to verify all the 27 websites…..(All my websites are verified on Google search console and I added my API Email as the owner on all the 27 websites)

    2) According to this URL https://rankmath.com/kb/how-to-automate-the-insertion-of-focus-keyword/ on How to automatically add focus keyword… The question is after I have made the configuration. It will add the title as a focus keyword on all the posts that don’t have one using this.
    /**
    * Function to automatically update the focus keyword with the post title, if no focus keyword is set
    */
    function update_focus_keywords() {
    $posts = get_posts(array(
    ‘posts_per_page’ => -1,
    ‘post_type’ => ‘post’ // Replace post with the name of your post type
    ));
    foreach($posts as $p){
    // Checks if Rank Math keyword already exists and only updates if it doesn’t have it
    $rank_math_keyword = get_post_meta( $p->ID, ‘rank_math_focus_keyword’, true );
    if ( ! $rank_math_keyword ){
    update_post_meta($p->ID,’rank_math_focus_keyword’,strtolower(get_the_title($p->ID)));
    }
    }
    }
    add_action( ‘init’, ‘update_focus_keywords’ );

    What if I forgot to add keywords on New post will it help me update them???

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    1. Yes, you can use the same project, service account, and API keys across multiple sites. In this case, make sure to set the service account as Owner of all the sites in Search Console.

    2. The filter should also work for your new post if it’s still active or pasted in the rankmath.php file or your active theme’s functions.php file.

    I hope that helps.

    Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    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 1 replies (of 1 total)

The ticket ‘Make An inquiry’ is closed to new replies.