Why update all post manually to get the analysis score?

#13012
  • Resolved Nirmal Kumar
    Rank Math free

    Earlier I was using Yoast SEO plugin. I have set the focus keyword for more than 200 articles through Yoast plugin. Now, should I update each post manually to get the score?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Kim
    Rank Math free

    Same problem here!! My Yoast keywords did not transfer over in import. You do not want us to have two plugins on at the same time but we have to, to get the keywords from Yoast to update all posts. Why didn’t they transfer over? I have 600 posts to update!!!

    Her Kim,

    You will get a clear understanding if I attach a screenshot.

    https://ibb.co/wWvyWjp

    If I open the old post, ‘Update Your Post’, I could notice the old focus keyword on RankMath, and it starts calculating SEO score.

    It means that I will have to open each post manually and click the update button.

    • This reply was modified 5 years, 2 months ago by Nirmal Kumar.

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.


    @madeinaday
    this is quite unexpected and may suggest that the import was aborted before completion. Please perform the import once again and this should fix the issue. You should not run two SEO plugins on the same site since this may cause a drop in your rankings.


    @admin582
    You can use one of the two methods below to bulk update your posts:
    – In the admin dashboard, select the view with all posts for your custom type
    1). Select all the posts (tick them) – You can see more posts by clicking ‘Screen Options’ at the top right of the view and increasing the number of items per page
    2). Click the down arrow next to ‘Bulk Actions’ and select edit
    3). Press ‘Apply’ – you will get a screen with a selection of changes you can make
    4). Make some change, like add a tag or change author
    5). Press ‘Update’
    That should do it.

    The second way can be achieved by adding the following code to your theme’s functions.php file:

    
    function my_update_posts() {
        //$myposts = get_posts('showposts=-1');//Retrieve the posts you are targeting
        $args = array(
            'post_type' => 'post',
            'numberposts' => -1
        );
        $myposts = get_posts($args);
        foreach ($myposts as $mypost){
            $mypost->post_title = $mypost->post_title.'';
            wp_update_post( $mypost );
        }
    }
    add_action( 'wp_loaded', 'my_update_posts' );

    Remember to run this only once and then remove it once you confirm that the posts are updated.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Kim
    Rank Math free

    Thank you for your help. I was able to rerun the Yoast transfer and it worked the second time.
    Kim

    Hi Kim,

    Thank you for the follow up.

    I am glad that this is now resolved 🙂

    Feel free to contact us should any other issues come up. Thank you.

    I tried both the methods. But, still, it did not work. The SEO scores are still not updated on my articles.

    Hi @admin582,

    Thanks for sharing your results and sorry for the delay.

    Some JavaScript needs to run in order for some tests to work. If this approach did not work then you may have to manually update your posts to get the SEO score.
    It is always a good idea to manually edit your key posts and see what the recommendations are that the plugin gives you and work on that. It is no good just seeing the score unless you know where your posts are lacking.

    We are looking forward to helping you. 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.

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

The ticket ‘Why update all post manually to get the analysis score?’ is closed to new replies.