• The objective is to create a custom feed using wp hook. The following code was added in the function.php of the child theme folder.

    function create_my_customfeed() {
            load_template( TEMPLATEPATH . 'custom-feed.php');
        }
        add_action('do_feed_mycustomfeed', 'create_my_customfeed', 10, 1);

    Also the standard rss feed template (feed-rss2.php) was used in the custom-feed.php (in the child theme folder) for testing purpose before customizing.

    But the https://example.com/?feed=mycustomfeed throws up the error

    ERROR: mycustomfeed is not a valid feed template.

    Any suggestion to fix this please……?

  • The topic ‘ERROR: mycustomfeed is not a valid feed template.’ is closed to new replies.