WordPress.org

Ready to get started?Download WordPress

Forums

podPress
[resolved] Double Title (3 posts)

  1. ProfessionalGeek
    Member
    Posted 1 year ago #

    I am getting a double title in my rss/podcast feed. Myself an our web developer have spent many hours trying to find out how to remove nothing seems to have any affect. Feed Name is set to "Church at South Lake", not sure why it continues to place the title twice in the feed. Possible it is something with the theme we are using but haven't found the fix. http://churchatsouthlake.com/feed/podcast

    http://wordpress.org/extend/plugins/podpress/

  2. ntm
    Member
    Plugin Author

    Posted 1 year ago #

    It is connected the usage of the filter hook regarding the title (e.g. wp_title, the_title, the_title_rss).
    One solution could be to add a little condition to the functions.php file of the theme. You will probably find the line:

    add_filter( 'wp_title', 'risen_title', 10, 3 );

    in that file. It means that the function risen_title will modify the title. The documentation of this fundtion (in file \includes\customizations.php) says: Apply custom <title> format for homepage or subpage as specified in Theme Options. In my opinion this means the function is meant to customize only certain titles and not the ones of the news feeds.
    That is why I would suggest to add a little condition to the risen_title function:

    function risen_title( $title, $sep, $seplocation ) {
    		if (FALSE === is_feed()) {
    
    			...
    
    			return $new_title;
    		} else {
    			return $title;
    		}
    	}

    This means if the request is one for a feed then this function will simply return the original title value. Otherwise it will do what it is supposed to do.

  3. ProfessionalGeek
    Member
    Posted 1 year ago #

    Thank you! Worked like a charm, at first I missed an ending } which caused a php error, but after I found that worked great! I really appreciate your fast response and the fact you support the plugin will recommend to others.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic