-
Hello Rank Math Support,
I’m experiencing an issue where Rank Math’s SEO score is not correctly displayed on the initial load of a page/post within the WordPress editor. This issue is specific to pages/posts containing custom ACF blocks.
Here’s a breakdown of the problem:
Rank Math correctly analyzes standard content (text paragraphs, etc.).
The Rank Math column in the page list displays the correct SEO score.
The issue only occurs on the initial load of a page/post within the editor.
After making any edit to the page/post, Rank Math correctly analyzes the content and updates the score.
When I run the javascript code:
JavaScriptwindow.addEventListener(‘load’, function() {
setTimeout(function() {
if (typeof rankMathEditor !== ‘undefined’ && typeof rankMathEditor.refreshAnalysis !== ‘undefined’) {
console.log(“Forcing RankMath analysis”);
rankMathEditor.refreshAnalysis();
} else {
console.log(“Rankmath analysis not found”);
}
}, 5000); // 5-second delay
});
I get the console log: “Rankmath analysis not found”.I have already taken the following troubleshooting steps:
Deactivated all other plugins.
Switched to a default WordPress theme.
Tested on multiple pages.
My environment details are:WordPress: 6.7.2
Rank Math: Version 1.0.240
ACF PRO: Version 6.3.12
Could you please provide information about how Rank Math’s analysis is initialized within the editor? Are there any JavaScript hooks or events that I can use to trigger the analysis on initial page load?Thank you for your assistance.
Sam.
The ticket ‘ACF content only recognized after editing.’ is closed to new replies.