Sitemaps does not work, just empty lists
-
I have several pages but page-sitemap.xml only has the the home page in the list. I added the recommended nginx config but still no luck. I started to dig into the code and what I can understand, the wp action is not added at all.
In class-sitemaps.php I found out that output will be generates by do a specific action that is named wpseo_xsl_*. So I found out that the actions is created on line 182 by this:
add_action( ‘wpseo_xsl_’ . $name, $function );The function with this row is called register_xsl but I cant find its called at all in anyway in the code. I looked after the hook which an action is calling by printing all hooks just before calling the action on line 416:
print_r($GLOBALS[‘wp_filter’]);There is no wpseo_xsl_* registered at all!
So my question is, why is the sitemaps empty? It seems there is no actions added for it.
WP: 5.3
Yoast: 12.5
- The topic ‘Sitemaps does not work, just empty lists’ is closed to new replies.