From 2b32148db9ff1b50da83af54533ccf17944e0a2d Mon Sep 17 00:00:00 2001 From: Andre Bulatov Date: Sun, 14 Feb 2016 21:57:33 -0500 Subject: [PATCH] Added to function.php -- func to put ALL Post Types to RSS Feed This fixes #32 --- wp-content/themes/mag-wp/functions.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/wp-content/themes/mag-wp/functions.php b/wp-content/themes/mag-wp/functions.php index 2ef8fc0..d28a8f5 100644 --- a/wp-content/themes/mag-wp/functions.php +++ b/wp-content/themes/mag-wp/functions.php @@ -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'); +