WordPress feed rss page not found

Hi guys! Today, I will explain to you how you can enable the feed RSS in Wordpress.

So, If you get the 404 error or page not found when you trying to get your feed from yourwebsiteaddress/feed/ , open your functions.php file from your Wordpress theme.

Next, add this code:

function myfeed_request($qv) {
if (isset($qv['feed']) && !isset($qv['post_type']))
$qv['post_type'] = array('post', 'cpt_name');
return $qv;
}
add_filter('request', 'myfeed_request');

in the functions.php file.

Now, go to yourwebsiteaddress/feed/ and you will be able to see your RSS feed.

 









Leave a Comment