Noted October 13, 2014

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

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

By Peter Wilson

Peter has worked on the web for twenty years on everything from table based layouts in the 90s to enterprise grade CMS development. Peter’s a big fan of musical theatre and often encourages his industry colleagues to join him for a show or two in New York or in the West End.

2 comments

    1. 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 comment

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.