[wp-hackers] Prepend blog name in comment feed's title

Otto otto at ottodestruct.com
Fri Oct 9 18:22:19 UTC 2009


Well, I'd try this in your code, for starters:

return get_bloginfo('name') . ' - ' . $str;

-Otto
Sent from Memphis, TN, United States


On Fri, Oct 9, 2009 at 1:15 PM, Thomas Scholz <info at toscho.de> wrote:
> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list