Small tip for future updates
-
Hello everyone,
I’d like to propose an enhancement or a manual configuration option for the “AI For SEO” WordPress plugin to improve its compatibility with shortcodes. Currently, the plugin appears to overlook shortcodes within post content, which limits its effectiveness for those of us using automated websites or dynamically generated content.
After some investigation, I’ve found that a simple modification to the plugin’s PHP code seems to resolve this issue. By changing the following line:
PHP
// Get post-content $post_content = $post->post_content;To this:
PHP
// Get post-content $post_content = do_shortcode($post->post_content);I’ve personally implemented this change on my own plugin installation, and it works flawlessly. The plugin is now able to analyze and optimize content generated by shortcodes without any problems.
I understand that directly modifying the plugin’s code isn’t a practical solution for everyone. Therefore, I suggest considering one of the following options:
- Implement the proposed change by default: This would enable the plugin to work seamlessly with shortcodes out of the box.
- Add a configuration setting: Include a checkbox or toggle in the plugin’s settings to allow users to enable or disable shortcode processing.
I believe this improvement would significantly enhance the plugin’s versatility and make it more valuable to a broader user base.
Thank you for your time and consideration.
Best regards,
Daniel
The topic ‘Small tip for future updates’ is closed to new replies.