[wp-trac] [WordPress Trac] #11053: Conditional Tags should work in feeds as well

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 17 14:18:41 UTC 2010

#11053: Conditional Tags should work in feeds as well
 Reporter:  pampfelimetten  |       Owner:                         
     Type:  enhancement     |      Status:  new                    
 Priority:  normal          |   Milestone:  Future Release         
Component:  Feeds           |     Version:  2.8.5                  
 Severity:  normal          |    Keywords:  conditional tags, feeds

Comment(by pampfelimetten):

 I have found a working solution. Not very elegant, but it does the job
 until the conditional tags work as well:

 function xxx_filter_rss()

         $uri= explode("/", $_SERVER['REQUEST_URI']);
         if ($uri[1]=="author") {
                 global $wpdb;
                 $name = $wpdb->get_var("SELECT display_name FROM
 $wpdb->users WHERE user_nicename='".$uri[2]."'");
         } else {



 add_action('rss2_head', 'xxx_filter_rss');

Ticket URL: <http://core.trac.wordpress.org/ticket/11053#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list