WordPress question – is this right to detect the main feed?

if ( is_feed() && !( is_archive() || is_singular() ) ) { ... }

Previous Note

Note: Water

Next Note

Note: Have a new notes section on my site for keepin…

2 responses to “Note: WordPress question – is this right to detect t…”

    • Unfortunately is_home is false in the main feed, thus the not check. Ticket #20899 exists but hasn’t gone anywhere, I suspect a fix risks breaking a few sites.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.