[wp-hackers] Prepend blog name in comment feed's title
Thomas Scholz
info at toscho.de
Fri Oct 9 18:15:35 UTC 2009
Hi,
I'm looking for a way to prepend my blog name to the title of comment
feeds for single articles.
The template in WordPress (/wp-includes/feed-rss2-comments.php):
<title><?php
if ( is_singular() )
printf(ent2ncr(__('Comments on: %s')), get_the_title_rss());
elseif ( is_search() )
printf(ent2ncr(__('Comments for %s searching on %s')),
get_bloginfo_rss( 'name' ), esc_attr($wp_query->query_vars['s']));
else
printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) .
get_wp_title_rss());
?></title>
As you can see, I'm able to add a filter to 'the_title_rss' and add the
blog name as a suffix.
<http://toscho.de/2009/wordpress-kommentarfeed-blogname/>
But how do I set the blog name in the first place? Any ideas?
Thomas
--
Redaktion, Druck- und Webdesign
http://toscho.de · 0160/1764727
Twitter: @toscho
More information about the wp-hackers
mailing list