-
Same error as this unresolved ticket: https://support.rankmath.com/ticket/author-sitemap-problem/
Easy to replicate:
– Sitemap HTML disabled site-wide.
– Sitemap Author enabledIf you don’t select any “Exclude User Roles”, the sitemap shows on sitemap_index and the author sitemap is as expected.
As soon as you select just 1 “Exclude User Roles”, the author sitemap disappears completely. Regardless of the role selected.
Error tracked in the MySQL query on “get_index_users()” in “class-author.php” that returns empty array of users so the sitemap is not added. The $exclude_roles_query” n lines :283 to :292 seems to be the culprit.
The ticket ‘Author Sitemap not being added into the sitemap.xml completely’ is closed to new replies.