[BUG] Yoast / Date archives settings
-
Steps to reproduce bug:
- Install a fresh WordPress
- Install Yoast plugin
- Install XML Sitemap & Google News feed
- In Yoast plugin settings disable “Date Archive” listing
- In XML Sitemap settings, set post monthly sitemap
You will be redirected to homepage, if you’ll try to read the post type xml sitemap (eg: https://xmlsitemap.local/sitemap-posttype-post.201712.xml)
My temporary workaround:
add_action( 'pre_get_posts', function ( $query ) { if (get_query_var('feed') == 'sitemap-posttype-post') { $query->is_date = false; } });
Anyone could help, please?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[BUG] Yoast / Date archives settings’ is closed to new replies.