Support » Fixing WordPress » itunes podcast > new feed URL

  • Resolved shai310

    (@shai310)


    Hello!

    very new to podcasting — having a question:

    my young podcast was submitted to iTunes with the ‘atom’ feed, but now i rather like to uses the ‘podcast’ feed (from the podcasting plugin)

    to redirect i want modify the “feed file” with the <itunes:new-feed-url> tag, but have no idea what file exactly do i have to modify to make it happen.

    a redirect .htaccess is already made on my server (not sure if thats the recommended “301”.. any idea?)

    thanks for helping

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same problem here

    http://www.apple.com/itunes/whatson/podcasts/specs.html#changing

    “You should set your web server to return an HTTP 301 response and redirect when receiving a request for the old feed. Doing so will cause both the iTunes Store and the most (but not all) iTunes clients that have subscribed to your podcast to pick up the new feed URL.

    The <itunes:new-feed-url> tag will work for iTS and all versions of the iTunes client that support podcasting. The 301 redirect will work for most of your subscribers who do not use the iTunes client. We recommend that you use both methods to update the greatest possible number of subscribers with your new feed URL.”

    so the 301 will mostly do you ok.

    Thread Starter shai310

    (@shai310)

    the 301 worked for a while. when i pinged the podcast i got the right, actual feed which i redirected to. but it was not good enough for the itunes store. in some point my podcast was removed (!) with no farther explanations.

    after researching, somebody insisted; i HAVE to use the infamous <itunes:new-feed-url> tag, which up until today, nobody could tell me — where is the feed which i have to modify, in wordpress. how does it look like / whats it’s name / where do i find it. and i refer to the original atom feed, which i applied to the iTS with.

    i thank in advance for any help

    Thread Starter shai310

    (@shai310)

    problem solved!

    the file needs to be edited is wp-includes/feed-rss2.php

    follow this thread >> http://wordpress.org/support/topic/112452?replies=4

    rather than edit a core WP file, a better solution would be to make use of the

    do_action('rss2_head')

    that that file uses. ie add this to your functions.php:

    add_action('rss2_head', 'redirect_my_podcast');
    function redirect_my_podcast()
    {	echo "<itunes:new-feed-url>http://feedburner.com/whatever</itunes:new-feed-url>\n";
    }

    this assumes that some other plugin is adding the adding the “xmlns:itunes=” bit in the namespace bit of the feed. If not, you also need

    add_action('rss2_ns', 'add_itunes_namespace_to_theme');
    function add_itunes_namespace_to_theme()
    {	echo 'xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"'."\n"; }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘itunes podcast > new feed URL’ is closed to new replies.