Forums

[resolved] add_feed not working (4 posts)

  1. ericr23
    Member
    Posted 3 years ago #

    I hope to add a 'select' feed, but the following plugin code does not add it. .../feed/select/ is not found. If I use add_feed('rss','feed_select'), the .../feed/rss/ returns the normal rss feed.

    function feed_select() {
    	echo('test successful');
    }
    function add_select() {
    	add_feed('select','feed_select');
    }
    add_action('init','add_select');
  2. ericr23
    Member
    Posted 3 years ago #

    It is the same in WordPress 2.3.3.

  3. ericr23
    Member
    Posted 3 years ago #

    Works in 2.6.

  4. tkm
    Member
    Posted 3 years ago #

    Hi ericr23,

    I am also trying to create a custom feed. Where do you place the code within wordpress?

    Any help would be appreciated :-)

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic