• Resolved Ilari Arovuo

    (@iarovuo)


    Hi,

    The Yoast option wpseo_xml no longer exists with Yoast SEO v13.0, thus no array key as enablexmlsitemap exists.

    The option is now wpseo and array key enable_xml_sitemap serves the purpose.

    Thus, depending on the Yoast SEO version in use, the code needs to check both options, and respective keys.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Surbma

    (@surbma)

    Thank you @iarovuo for your feedback! I will fix the plugin asap.

    Thus, depending on the Yoast SEO version in use, the code needs to check both options, and respective keys.

    There is no need for any check. The new version will use only the new option. If anybody is still using the old version of Yoast, they only need to keep the old version of my plugin. But there is no reason to do that, it is best to keep plugins up to date!

    Plugin Author Surbma

    (@surbma)

    @iarovuo The plugin is fixed and the new version is out. Thank you again for the detailed feedback to help my work to fix the plugin.

    Thread Starter Ilari Arovuo

    (@iarovuo)

    @surbma I fixed the plugin with

    
    $options = get_option( 'wpseo_xml' );
    $options2 = get_option( 'wpseo' );
    if ( class_exists( 'WPSEO_Sitemaps' ) && ($options['enablexmlsitemap'] == true || $options2['enable_xml_sitemap'] == true )) { ....

    … This way the plugin works for both old and new versions of Yoast SEO

    Plugin Author Surbma

    (@surbma)

    Thank you for the code! I know, how this should be done, but I really don’t want to support old versions of Yoast SEO. This is intentional.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Does not work with Yoast SEO v13.0’ is closed to new replies.