• Resolved MCM

    (@nathmie)


    I did some googling on this but basically, my podcast feed url from my website point of view will be changing as we moving content to a new website.

    I have that one has to “If you don’t have access to the old feed to add the redirection tag to it you can’t redirect iTunes yourself”

    I do have access to the old feed but how do I go about making this change?

    http://wordpress.org/extend/plugins/podpress/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author ntm

    (@ntm)

    The elegant way would be to fit the something like this

    <itunes:new-feed-url>the URL of the new feed location</itunes:new-feed-url>

    into the XML code of your old feed (see also http://www.apple.com/itunes/podcasts/specs.html#newfeed and http://www.apple.com/itunes/podcasts/specs.html#changing).

    The question is probably how to do this. If you craft this feed by hand then you can paste this line of code into the <channel> section of the feed.
    If you use a CMS like WordPress at the old location then you could search for a plugin like podPress which has a setting where you can insert the new feed location and which adds the XML code automatically at right place in the feed.

    Once this tag and the new URL is in the code of the old feed the iTunes server will update its information and look after a couple of days at the new location for the feed.

    Thread Starter MCM

    (@nathmie)

    I am using podpress, but with custom post type and custom taxonomy therefore I am not using the UI.

    So, hence not sure where to do this.

    Plugin Author ntm

    (@ntm)

    Go to the podPress > Feed/iTunes Settings page, section “Settings for the default Feeds”. There you can find the setting “iTunes:New-Feed-Url”. Enable it and insert the new URL.
    This will insert the required meta tag also into the XML code of the custom post type feeds.

    Thread Starter MCM

    (@nathmie)

    Will the above change affect all my manually submitted URLs to iTunes?

    I have a number of podcasts none of them use the default RSS feed.

    e.g.

    http://www.mywebsite.com/feed/?post-type=audio&speaker=john
    http://www.mywebsite.com/feed/?post-type=audio&speaker=john2
    http://www.mywebsite.com/feed/?post-type=audio&speaker=john3

    They all seperate podcasts and they will be served from a different website going forward.

    How do I get them to point to this new server?

    All the posts etc have been copied over I just need to point it to the new podcast url on the new website.

    Plugin Author ntm

    (@ntm)

    Will the above change affect all my manually submitted URLs to iTunes?

    Yes. The method I tired explain would only be usable in a case where you would want to redirect one single feed. Because the setting on the podPress > Feed/iTunes Settings page, section “Settings for the default Feeds” would set in all custom post type feeds the itunes:new-feed-url tag. But it is not possible to set different URLs for all the different feeds.

    How do I get them to point to this new server?

    Well, you could you a further custom code snippet:

    add_action('rss2_head', 'pff_modify_rss2_head');
    function pff_modify_rss2_head() {
    	if ( 'audio' === get_query_var('post_type') ) {
    		$term_data = get_term_by('slug', get_query_var('speaker'), 'speaker');
    		Switch ($term_data->name) {
    			case 'John 1' :
    				echo "\t".'<itunes:new-feed-url>http://example.com/john1</itunes:new-feed-url>'."\n";
    			break;
    			case 'John 2' :
    				echo "\t".'<itunes:new-feed-url>http://example.com/john2</itunes:new-feed-url>'."\n";
    			break;
    			case 'John 3' :
    				echo "\t".'<itunes:new-feed-url>http://example.com/john3</itunes:new-feed-url>'."\n";
    			break;
    		}
    	}
    }

    This is an example. If you use this code snippet then it is necessary that you adjust the case 'john3' : lines. Instead of johnx write the names of the speakers and adjust the values of the new feed URLs.
    If you have more than 3 speakers, copy one of the

    case 'John 3' :
    	echo "\t".'<itunes:new-feed-url>http://example.com/john3</itunes:new-feed-url>'."\n";
    break;

    and paste it is often as you like.

    If had enabled the new-feed-url option on the Feed/iTunes settings page then disable it. (This code has collision control and would print simply a further <itunes:new-feed-url> tag. That could confuse the iTunes server.)

    Thread Starter MCM

    (@nathmie)

    Okay, so I got this working however my urls contain a quesiton mark then it throws an error.

    e.g. <itunes:new-feed-url>http://www.mywebsite.com/feed/&#8221; << this works

    <itunes:new-feed-url>http://www.mywebsite.com/feed/?post_type=audio&speaker=john-wayne</itunes:new-feed-url&gt;

    << this does not work.

    Thanks again your code looks like it does the trick, I am always there. 🙂

    Thread Starter MCM

    (@nathmie)

    This page contains the following errors:
    
    error on line 14 at column 97: EntityRef: expecting ';'
    Below is a rendering of the page up to the first error.

    Error Message.

    Plugin Author ntm

    (@ntm)

    The problem isn’t the question mark. It is the ampersand.
    Write
    ?post_type=audio&speaker=john
    and it will work.

    Thread Starter MCM

    (@nathmie)

    THhanks, but where did you see ampersand?

    I have ?post_type=audio&speaker=

    I took that copy and pasted from my code

    Thread Starter MCM

    (@nathmie)

    So thanks yes you were 100%.

    I need to have:

    & instead of &

    Plugin Author ntm

    (@ntm)

    Oh, I have not controlled the output of my last post. But I guess you have guessed that the solution would be the numeric equivalent of the ampersand. & #38; (without the white space between the first two characters)

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How do I change my iTunes URL’ is closed to new replies.