[wp-trac] [WordPress Trac] #22031: Conditional tags don't work within add_feed() callback function

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 1 12:05:12 UTC 2012


#22031: Conditional tags don't work within add_feed() callback function
--------------------------+------------------------------
 Reporter:  sanchothefat  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Feeds         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  close         |
--------------------------+------------------------------

Comment (by sanchothefat):

 @ocean90 I get what you're saying. Thing is though feeds change depending
 on context eg. `/category/cat-name/feed/` is a feed for that category, so
 wouldn't it be useful to have a way of telling them apart from the main
 feed for example?

 What about feed versions of the `is_category()` type conditionals eg.
 something like `is_category_feed()`, `is_tax_feed()` etc...?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22031#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list