- 
		Dear Team of Rank Math 
 how can possible auto code active and resolved this issue with work
 https://rankmath.com/kb/seo-score-not-available/
- 
		
			
				
Hello, Thank you for your query and we are so sorry about the trouble this must have caused. Can you please confirm if you wish to automate the process from the guide? If so, unfortunately, the functionality to re-calculate the score of your posts is currently hardcoded to our plugin and we have no option to run it in real-time or automatically. It needs to be initiated only when needed. If you are referring to something else, kindly explain your issue or goal in detail so we can advise further. Looking forward to helping you. Dear Rank Math 
 your code applice tag to atuo gernte add foucs keyworld by post tags
 but isseu facing tag add on post but stuts seo secore N/A then all post open and save showing seo secore update or tools databise Recalculating SEO Scores
 then showing seo scores update but i want when tag code add then auto seo secore update with out open any post or tools databise Recalculating SEO Scores with should update atuto
 Automatically Use the Tags as the Focus Keyword
 this code applie then same issue
 /**
 * Function to automatically update the focus keyword with the post tags
 */
 function update_focus_keywords()
 {
 $posts = get_posts(array(
 ‘posts_per_page’ => 100,
 ‘post_type’ => ‘post’ //replace post with the name of your post type
 ));
 foreach ($posts as $p) {
 $keywords = [];
 if (get_the_tags($p->ID)) {
 foreach ((get_the_tags($p->ID)) as $tag) {
 $keywords[] = strtolower($tag->name);
 }
 update_post_meta($p->ID, ‘rank_math_focus_keyword’, implode(“, “, array_unique($keywords)));
 }
 }
 }
 add_action(‘init’, ‘update_focus_keywords’);———————————– this code modif then same issue modifi code 
 here
 auto title tag catgeries and munwal foucs key add i am very happly with rankmath seo but only issue fix then very every happy becouse daily baise chek post and manual update seo secore daily 5 time our 4 time so plz help me thank so muchfunction update_focus_keywords() { 
 $posts = get_posts(array(
 ‘posts_per_page’ => -1,
 ‘post_type’ => ‘post’
 ));
 foreach ($posts as $p) {
 $manual_focus_keyword = get_post_meta($p->ID, ‘rank_math_focus_keyword’, true);
 if ($manual_focus_keyword) {
 // Use the manually set focus keyword if available
 update_post_meta($p->ID, ‘rank_math_focus_keyword’, $manual_focus_keyword);
 } else {
 // Generate focus keywords from post title, tags, and categories
 $title = $p->post_title;
 $keywords = preg_replace(‘/[^a-zA-Z0-9\s\-\’\’]/’, ”, $title);
 $keywords = strtolower(str_replace(‘ ‘, ‘ ‘, str_replace(“\n”, ‘ ‘, $keywords)));
 $keywords = preg_split(‘/[\s\-]+/’, $keywords);
 $keywords = array_filter($keywords);
 $primary_keyword = array_shift($keywords);
 $tags = wp_get_post_tags($p->ID);
 $tag_names = array();
 if ($tags) {
 foreach ($tags as $tag) {
 $tag_names[] = strtolower($tag->name);
 }
 }
 $categories = get_the_category($p->ID);
 $category_names = array();
 if ($categories) {
 foreach ($categories as $category) {
 $category_names[] = strtolower($category->name);
 }
 }
 $all_keywords = array_unique(array_merge(array($primary_keyword), $keywords, $tag_names, $category_names));
 update_post_meta($p->ID, ‘rank_math_focus_keyword’, implode(“, “, $all_keywords));
 }
 }
 }
 add_action(‘save_post’, ‘update_focus_keywords’);Can you please confirm if you wish to automate the process from the guide 
 yes sir automate processHello, Unfortunately, the recalculate option could not be set automatically. You may need to click the button to run the process. Moreover, on the filter you have shared, that process automatically adds the title to keywords but does not calculate the scores. If you’re editing and publishing your posts, the scores will be automatically added to the post list view so you won’t need to automate the recalculate score option. Looking forward to helping you. Thank you. Dear Team RankMath 
 automate the process from the guide also Yes
 automate process all post
 every post title to add foucs key word auto add
 file time title auto add no showing N/A sutus on post if possbileHello, We might need to take a closer look at the settings to better understand the issue you are facing. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section. Please do take a complete backup of your website before sharing the information with us. 
 It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead: https://wordpress.org/plugins/temporary-login-without-password/ You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any): https://wordpress.org/plugins/wp-security-audit-log/ We really look forward to helping you. Hello, I have updated the sensitive data as requested. Can you please check further? Thank you. Hello, I updated the SEO score using the database tool and it worked fine. All your published posts now have an SEO score. 
 Please check and let us know if you need any other 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. 
The ticket ‘N/A showing on post’ is closed to new replies.
