WordPress.org

Ready to get started?Download WordPress

Forums

Blog name duplicated in RSS feed name. (13 posts)

  1. DTPOTP
    Member
    Posted 1 year ago #

    I am writing about my blog at DTPOTP.com -- when I subscribe to the RSS feed via google reader, my name is repeated like this: DTP OTPDTP OTP. How can I fix this display error?

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    It is not a problem with Google Reader, but your RSS feed http://www.dtpotp.com/feed/ has the title set as DTP OTPDTP OTP. Reset it.

  3. DTPOTP
    Member
    Posted 1 year ago #

    How do I reset it?

  4. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    If you have setup the feed from a text widget, either post the correct title in the box for title or leave it blank and save it.

  5. DTPOTP
    Member
    Posted 1 year ago #

    I just have the sidebar widget from Jetpack set up and there is no place to enter the blog name there.

  6. karenelated
    Member
    Posted 1 year ago #

    Hi DTOPOTP
    Did you resolve this? I have the same problem:
    http://www.elated.co.za/feed
    feed.feedburner.com/elated
    the name appears as ElatedElated
    Any help will be appreciated.
    Thanks!

  7. DTPOTP
    Member
    Posted 1 year ago #

    Nope, I never did! Couldn't find an explanation that made any sense.

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    Check your theme's functions.php file for a function that is being added via the wp_title() filter. If it uses the code suggested in this Codex page, then that's where the problem will be. The code is flawed and results in a duplicated title in RSS feeds. I'm currently investigating the correct way to amend the code to stop this happening.

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    And I've now corrected the example code in that Codex page to stop the RSS title duplicating.

  10. karenelated
    Member
    Posted 1 year ago #

    Hi Esmi. Thanks, but I'm not clued enough to know what to change. Nothing in the functions.php looks anything like the example.

    Is this what you're referring to?

    // Action Hook
    add_action( 'widgets_init', 'birdtips_widgets_init' );
    add_action( 'after_setup_theme', 'birdtips_setup' );
    add_action( 'wp_enqueue_scripts', 'birdtips_scripts' );
    add_filter( 'get_search_form', 'birdtips_search_form' );
    add_filter( 'wp_title', 'birdtips_title' );
    add_theme_support( 'automatic-feed-links' );

    or this?

    // Document Title
    function birdtips_title( $title ) {
    	global $page, $paged;
    
    	$title .= get_bloginfo( 'name' );
    	$site_description = get_bloginfo( 'description', 'display' );
    
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		$title .= " | $site_description";
    
    	if ( $paged >= 2 || $page >= 2 )
    		$title .= ' | ' . sprintf( __( 'Page %s', 'birdtips' ), max( $paged, $page ) );
    
    	return $title;
    }

    Thanks!

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser.]

  11. esmi
    Forum Moderator
    Posted 1 year ago #

    I think it's the second function that is to blame. Try replacing it with:

    // Document Title
    function birdtips_title( $title ) {
    	global $page, $paged;
    	$title .= get_bloginfo( 'name' );
    	if( !is_feed() ) {
    		$site_description = get_bloginfo( 'description', 'display' );
    		if ( $site_description && ( is_home() || is_front_page() ) )
    			$title .= " | $site_description";
    		if ( $paged >= 2 || $page >= 2 )
    			$title .= ' | ' . sprintf( __( 'Page %s', 'birdtips' ), max( $paged, $page ) );
    	}
    	return $title;
    }
  12. karenelated
    Member
    Posted 1 year ago #

    thanks, no it didn't work. My home page redirects to my index page, as I wanted the home page to be the blog roll. Is that the problem?

  13. esmi
    Forum Moderator
    Posted 1 year ago #

    The changes I suggested shouldn't affect that.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags