Skip to content

Instantly share code, notes, and snippets.

@amboutwe
Last active April 15, 2019 01:21
Show Gist options
  • Save amboutwe/63da5a51b1853ba7cbfbe4de55699cf6 to your computer and use it in GitHub Desktop.
Save amboutwe/63da5a51b1853ba7cbfbe4de55699cf6 to your computer and use it in GitHub Desktop.
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Include empty terms in the sitemap
* Credit: Yoast team
* Last Tested: Mar 22 2019 using Yoast SEO 10.0.1 on WordPress 5.1.1
*/
add_filter('wpseo_sitemap_exclude_empty_terms', '__return_false');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment