• Resolved obache

    (@obache)


    Probably, due to removal of pt- prefix of post type sitemap file name scheme, custom taxonomy sitemap files are also recognized as post type sitemap file. But no such valid post type, then empty result.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter obache

    (@obache)

    Thread Starter obache

    (@obache)

    change_url_to_required() of class-googlesitemapgeneratorloader.php:

    					else if($postType[0] === 'post_tag' || $postType[0] === 'category' ) return 'params=tax-' . $postType[0] . '-' . $matches[0];
    

    Replace $postType[0] === 'post_tag' || $postType[0] === 'category' with taxonomy_exists($postType[0]), and custom taxonomy sitemap file will be not empty.

    It is ad-hoc fix, because custom taxonomies may be disabled for sitemap, or custom post type with same slug may exist.

    sweeperr

    (@sweeperr)

    Same issue here, and I appreciate your fix.

    Plugin Author Auctollo

    (@auctollo)

    Thanks, everyone; we have this issue fixed in the next release.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom taxonomy sitemap file is empty’ is closed to new replies.