WordPress.org

Ready to get started?Download WordPress

Forums

Delicacy
[resolved] Site Title appears twice in Feed. How can I change it so it displays only once? (12 posts)

  1. lilacsun
    Member
    Posted 1 year ago #

    Hello,

    For some reason, the Site Title is displaying twice in the Feed.

    example.com/feed

    Site Title | Site Title
    Site Description

    What do I change so the Site Title displays only once in the Feed?

    Thanks so much.

  2. lilacsun
    Member
    Posted 1 year ago #

    Hello again,

    I was able to change it so the Site Title displays only once in the Feed.

    I went to:
    wp-includes/feed-rss2.php

    I found this line:
    <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>

    And I changed it to this:
    <title><?php bloginfo_rss('name'); ?></title>

    The Site Title is now displaying only once.

  3. paulwpxp
    Font hero
    Posted 1 year ago #

    @lilacsun

    It's wrong to edit WP core file.

  4. lilacsun
    Member
    Posted 1 year ago #

    Could you please tell me the correct way to fix this?

  5. paulwpxp
    Font hero
    Posted 1 year ago #

    @lilacsun

    The default <title> output by WP for feed is not the cause of double site name that you see, it's the function in your theme that filters wp_title() without the if-not-feed check, on top of that it doesn't aware of the way WP outputs feed's <title>.

    I would just keep this topic open to let the author of the theme see the issue.

  6. alex27
    Member
    Theme Author

    Posted 1 year ago #

    Noted :) I'll remember to fix this in the next update.

  7. lilacsun
    Member
    Posted 1 year ago #

    Great. Thank you.

  8. Avantart
    Member
    Posted 1 year ago #

    @paulwpxp

    hihi,

    you are so clever to tell us not to edit core files and to blame the author of the theme! Blame WP! Because this problem occurs with TwentyTwelve for example!

    Please tell me which author I have to contact? ;=)

    better: please tell me how to fix that without editing core files!

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    @Avantart: As per the Forum Welcome, please post your own topic. Posting in an existing topic prevents us from being able to track issues by topic. Added to which, your problem - despite any similarity in symptoms - is likely to be completely different.

  10. Atul Kumar Pandey
    Member
    Posted 1 year ago #

    WordPress is still under development...

    I was also the same problem that feed titles are repeating two times. Finally i get it fixed in just some simple ways...

    Follow the link here a complete explanation about fixing Double Feed Title in WordPress...

    http://www.gethow.org/how-to-fix-double-feed-title-in-wordpress/

    I hope the solution get fixed by this.

  11. paulwpxp
    Font hero
    Posted 1 year ago #

    @atulkumarpandey

    Please do not advice users to edit any of WP core files.

    See how to filter wp_title() and not doubling it in feed.
    http://themes.trac.wordpress.org/browser/twentytwelve/1.1.1/functions.php#L168

  12. Andrew
    Forum Moderator
    Posted 1 year ago #

    @paulwpxp, Thank you for highlighting that.

    @atulkumarpandey, For this reason I've now removed the other occurrences of your advice regarding editing the core files.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.