Make WordPress Core

Opened 4 years ago

Last modified 2 years 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:


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 (, 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
2 years ago

The is_sitemap() conditional is now provided by :)

Note: See TracTickets for help on using tickets.