Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to change my RSS feed titles to display the post type beforehand but it's not working.

Code below. Any ideas?


function changeRSStitles($content) {

global $post;

if (get_post_type($post) == 'literature') {
    $content = 'Literature: '.$content;
} else if (get_post_type($post) == 'recipe') {
    $content = 'Recipe: '.$content;
} else if (get_post_type($post) == 'restaurant') {
    $content = 'Restaurant: '.$content;
} else if (get_post_type($post) == 'post') {
    $content = 'Sugar Street Blog: '.$content;
}else {
    $content = $content;

return $content;

add_filter('the_title_rss', 'changeRSStitles');
share|improve this question

1 Answer 1

up vote -1 down vote accepted

Got it working! Just had to resync the feedburner feed

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.