• Hello,

    Is it at all possible to have different post titles for the RSS feed? Or…?

    For instance:

    I write a post titled: “Movies are great.” But in the RSS feed, that title shows up as “A great time at the movies” or some such. Is that at all possible?

    Reason for this: problems we’ve been having with duplicate content in the last six months or so.

    Any assistance would be MUCH appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • A filter, combined with a custom field should work:

    function rss_filter($title) {
    	global $post;
            // add a custom field named 'rss_title' to the post
    	$rss_title = get_post_meta($post->ID, 'rss_title', true);
    	return $rss_title;
    }
    
    add_filter('the_title_rss', 'rss_filter',10);

    Function above works, but doesn’t check for the case when the custom field doesn’t exist, which you should probably add :).

    Thread Starter altfgcom

    (@altfgcom)

    @popper

    Thank you for very much (really!) for your response.

    I’m looking now at the codex to figure out how to create a custom field. It doesn’t look too complicated…

    Now, *IF* you get a chance, would you mind looking at this other query (re: manual excerpts for feeds/automatic excerpts for homepage/tag archives)?

    http://wordpress.org/support/topic/how-to-manual-excerpt-for-rssautomatic-excerpt-for-homepagearchives?replies=1

    We’ve tried copying various function commands (for excerpts) that we found at this forum and elsewhere, but no luck. Got “parse error” or 500 error messages.

    Once again, thank you for your help. Much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible? Different post titles: one for post, one for RSS feed?’ is closed to new replies.