Make WordPress Core

Opened 4 years ago

Last modified 22 months ago

#51543 new feature request

Create is_sitemap() conditional tag

Reported by: madtownlems's profile MadtownLems Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Sitemaps Keywords:
Focuses: Cc:

Description

As people continue expanding and customizing Core's XML sitemaps, I believe an is_sitemap() conditional tag would be very helpful.

In the short term, its existence would be very useful for getting around the bug explained in #51542 (https://core.trac.wordpress.org/ticket/51542), but surely developers will find other ways to make use of it and it seems like a natural fit to be a conditional tag.

Change History (1)

#1 @RavanH
22 months ago

The is_sitemap() conditional is now provided by https://wordpress.org/plugins/xml-sitemaps-manager/ :)

Note: See TracTickets for help on using tickets.