How to include empty terms into wp-sitemap.xml?

Use the wp_sitemaps_taxonomies_query_args hook to set hide_empty to false: add_filter( ‘wp_sitemaps_taxonomies_query_args’, function ( $args ) { $args[‘hide_empty’] = false; return $args; } ); Explanation The list of terms in the site map is generated by the WP_Sitemaps_Taxonomies::get_url_list() method. The terms are queried in this method using the get_taxonomies_query_args() method to build the args for WP_Term_Query: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)