• theMikeD

    (@themiked)


    For reasons I won’t bore you with, I need <taxonomy>-sitemap.xml (the sitemap for a custom taxonomoy) to show everything, even tags that appear empty. As of now they are skipped. How can I force all terms to be listed, regardless of whether they appear to have any posts linked to them?

    https://wordpress.org/plugins/wordpress-seo/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter theMikeD

    (@themiked)

    For example, is there a hook or something to modify how this list is created? That would be ideal

    Because I’ve not been able to find the correct answer anywhere and it took me some time to figure out how to include empty taxonomies in the sitemaps, here comes the code to be included in your function.php:

    add_filter('wpseo_sitemap_exclude_empty_terms', '__return_false');

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sitemap XML not showing empty taxonomy’ is closed to new replies.