I got Custom feed 404 page not found Error
-
I want to create new custom rss feed. I added the following code to theme’s function.php file and also create separate template file.
add_action(‘init’, ‘customRSS’);
function customRSS(){
add_feed(‘feedname’, ‘customRSSFunc’);
}function customRSSFunc(){
get_template_part(‘rss’, ‘feedname’);
}But when I view the feed https://example.com/feed/feedname it shows 404 page not found error. Please help me to find what is wrong with this code.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘I got Custom feed 404 page not found Error’ is closed to new replies.