XML sitemap for included taxonomy doesn’t take into account empty taxonomy

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');
add_filter('wpseo_sitemap_exclude_empty_terms', '__return_false');

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *