WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.