While most bloggers & web developers running for a new world of podcasting and developing scripts to enable their blog for ipod friendly feeds, some of bloggers might not like that since the media enclosure function will reveal the direct link to the media and vurnerable for free downloads or hotlinking the media from other sites. And as the result, the bloggers will loose quite a large amount of their visitors that able to download the media easily without visiting the owner site first (even for saying thanks)
I tried to search on the web for the solution of this stuff and found nothing that can solve some of those bloggers who doesn’t wan’t their blog feeds to contain any media enclosure. But after searching for the solution inside the wordpress itself, I manage to find the coding that was used to parse media enclosure link inside the blog feed. For any blogger that using wordpress and want to disable media enclosure inside their blog, you can use this trick here :
1) Find this 2 files inside wp-include folder. feed-rss2.php and feed-atom.php.
2) Open feed-rss2.php and somewhere in the bottom of the codes,
you can find the statement rss_enclosure().
Comment or remove the function there and save.
<?php //rss_enclosure(); ?>
you can find the statement atom_enclosure().
Comment or remove the function there and save.
<?php //atom_enclosure(); ?>
Have a nice day.











BlogoSquare
2 Trackbacks
[…] 4) Audio player Many of us using this plugin to put audio streaming on their post. Very easy to use and manage. I love it and I use it on every blog I have as well. One thing that you should know is when you use this plugin, It will leave media enclosure inside your feeds. Its good for Ipod somehow. Some people will like it and some might not. Anyway its not the plugin’s fault, read here for instruction on how to remove media enclosure. […]
[…] searched Google for a solution and all I found so far was an article explaining how to edit your WP RSS and Atom includes. I’m not sure if that is best practice […]