There is an issue with entries that have no expiry date but are not yet posted showing up in the sitemap.
The orWhere needs to only be affecting the expiry date check where as currently anything with a null expiry date is shown, overriding the postDate check.
There is an issue with entries that have no expiry date but are not yet posted showing up in the sitemap. The orWhere needs to only be affecting the expiry date check where as currently anything with a null expiry date is shown, overriding the postDate check.