Skip to content

Commit

Permalink
Added to function.php -- func to put ALL Post Types to RSS Feed
Browse files Browse the repository at this point in the history
This fixes #32
  • Loading branch information
Andre Bulatov committed Feb 15, 2016
1 parent 656bf55 commit 2b32148
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions wp-content/themes/mag-wp/functions.php
Expand Up @@ -467,3 +467,15 @@ function andre_get_post_class_without_hentry() {
};
return implode(" ", $classes);
}

// ------------------------------------------------------------------------------
// Add all custom post types to RSS feed - Andre
// ------------------------------------------------------------------------------
function myfeed_request($qv) {
if (isset($qv['feed']))
//$qv['post_type'] = get_post_types();
$qv['post_type'] = array('news', 'opinion_post', 'gear_post', 'album_review', 'post');
return $qv;
}
add_filter('request', 'myfeed_request');

0 comments on commit 2b32148

Please sign in to comment.