Help please!!! Custom feed error "….is not a valid feed template."
-
My objective is to create custom feed. I added the following code to the themes’ function file.
But the url http://example.com/?feed=info returns the error ERROR: info is not a valid feed template.
It looks like this method has worked for many. Please help me to find what is wrong with this code.
Code used in functions.php file:
add_feed('info','myFeed'); function myFeed() { <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"> <channel> <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> </channel> </rss> }
- The topic ‘Help please!!! Custom feed error "….is not a valid feed template."’ is closed to new replies.