Forums

Podpress - iTunes website link - where to change? (5 posts)

  1. scotteh
    Member
    Posted 3 months ago #

    I'm new to wordpress and podpress. We need to change the website link on the itunes podcast page.

    In iTunes, in the iTunes store, on the left side of our podcast page it says "More from <company name> and under that it says "website".

    Right now it links to http://www.ourdomain.com/podcast. Is there some way to have it link to http://www.ourdomain.com ?

    Thanks!
    Scott

  2. ntm
    Member
    Posted 3 months ago #

    Hi Scott,

    usually this link points to the home URL of the blog. You can not change that with podPress settings.

    http://examples.com/podcast/ is probably what you have inserted as Site Address (URL) on the General Settings page of your blog.
    If you have changed that recently then it will change automatically in the feed as well as on the iTunes Store page within the next 48 hours.

    You can control which URL is curently in the feed. Open your feed URL in the Firefox browser and view the source code of this page.
    The XML code should contain a <link>...</link> tag and inside you will see the current site URL.

    Regards,
    Tim

  3. scotteh
    Member
    Posted 3 months ago #

    Hi

    Thanks for the info but I guess that means it isn't possible. I tried changing that link and it broke the site (as many others have found out!).

    Also it wont work because then it seems itunes will look at that address for podcast updates. It wont find them there since the blog will still be at /podcast.

    I guess there are reasons for this but it is very misleading for them to put "website" as the link on the itunes page. Since it says "More from this company" it looks like you are being linked back to the company website, not to the podcast feed (which you are already looking at on the itunes page!).

    Also I did not find the link tag in the feed. I'm not sure which is "your feed url". I tried the /podcast page and there is a link at the top of that one that says "Podcast Feed". I couldn't find it in either. Although just looking at the code doesn't help me anyway. If it is changed in wordpress - General Settings and that causes problems then I guess it just can't be done.

    Thanks!
    Scott

  4. ntm
    Member
    Posted 3 months ago #

    Also it wont work because then it seems itunes will look at that address for podcast updates.

    The iTunes server will look at the address which you have used during the registeristration of you podcast at that repository or the a new URL which you could give to the server viw the itunes:new-feed-url function (see the Feed/iTunes settings of podPress). iTunes does not use the <link> URL to look for the podcast feed.

    I tried the /podcast page and there is a link at the top of that one that says "Podcast Feed".

    By default podPress adds an additional RSS feed to a blog which has the URL http://www.example.com/?feed=podcast or (if you are using a non-default Permalink scheme) http://www.example.com/feed/podcast . This URL is probably only one time in the source code of the feed (as part of the <atom:link ..>)

    I guess that means it isn't possible.

    Actually it is possible to change the content of the <link> tag in that feed. But not with podPress. I would need a little filter plugin.
    I will post an example a little bit later today.

  5. ntm
    Member
    Posted 3 months ago #

    As I mentioned before, you can modify this link with a little filter plugin.
    Copy and paste the following code into a new text file (a text file not a Word document nor office documents) and name this file e.g. bloginfo_rss_url_filter.php.
    Upload this file e.g. via FTP into a sub folder of the /wp-content/plugins folder of your blog e.g. /wp-content/plugins/bloginfo_rss_url_filter/.
    Afterwards open the plugins page of your blog. The plugin will appear as "bloginfo_rss URL filter" in the list of the plugins. Activate it.

    <?php
    /*
    Plugin Name: bloginfo_rss URL filter
    Plugin URI:
    Description: This plugin modifies the URL e.g. of the <link> tag in a certain news feed of the blog.
    Author: ntm
    Version: 1.0
    Author URI: http://profiles.wordpress.org/ntm/
    */
    
    // add a filter to the WP Filter Hook get_bloginfo_rss
    add_filter('get_bloginfo_rss', 'modify_my_bloginfo_rss_url',10, 2);
    function modify_my_bloginfo_rss_url($val, $show='') {
    	// If it is an request for one of the news feeds of the blog and if it is the request for the URL e.g. of the <link> tag in RSS feed
    	if ( TRUE === is_feed() AND 'url' === $show) {
    		// then get the feedslug to determine the type or the name of the feed. standard values are rss, rss2, atom or rdf. But could also be a custom name.
    		$feedslug = get_query_var('feed');
    		// $feedslug is the name of the feed in the URL e.g. example.com/feed/rss2 is the RSS2 feed or in example.com/feed/podcast is podcast the slug
    		// If it is a certain feed type or feed then do something with the URL (e.g. replace it with a different one) and return it so can be placed in the XML output of the feed.
    		if ('podcast' === $feedslug) {
    			return 'http://example.com';
    		} else {
    			return $val;
    		}
    	} else {
    		return $val;
    	}
    }
    ?>

    This is the code of a rudimentary plugin which replaces the URL of the blog with the new URL http://example.com only in the feed with the slug name podcast. You may adjust both values (all what is between the single quotaion marks) before you upload the file.

    (If you want to control the result with your web browser then it might be necessary to clear the cache memory of the browser. Further the iTunes Store updates modification in the feed every 24h automatically.)

Reply

You must log in to post.

About this Topic