{"id":1749,"date":"2008-08-27T19:28:21","date_gmt":"2008-08-27T16:28:21","guid":{"rendered":"http:\/\/mummila.net\/nuudelisoppa\/?p=1749"},"modified":"2008-08-27T19:28:21","modified_gmt":"2008-08-27T16:28:21","slug":"some-notes-about-podcasting-in-wordpress","status":"publish","type":"post","link":"https:\/\/mummila.net\/nuudelisoppa\/2008\/08\/27\/some-notes-about-podcasting-in-wordpress\/","title":{"rendered":"Some notes about podcasting in WordPress"},"content":{"rendered":"<ul>\n<li>Theoretically, publishing a podcast feed in WordPress should take nothing more than <a href=\"http:\/\/codex.wordpress.org\/Podcasting\">a link to the episode file, using an absolute URL<\/a>. This should prompt WordPress to generate the appropriate <code>enclosure<\/code> tag in the feed.<\/li>\n<li>However, <a href=\"http:\/\/www.fedorareloaded.com\/?p=9\">WordPress generates the <code>enclosure<\/code> only upon <em>initial generation<\/em> of a post<\/a>, not on subsequent edits. So if the podcast URL is added <em>after<\/em> the entry is created, during an edit, the enclosure isn&#8217;t generated.<\/li>\n<li>For some reason, WordPress doesn&#8217;t generate the <code>enclosure<\/code> for me even when I post the link straight up. It doesn&#8217;t do so either, when I use the &#8216;Add media&#8217; function, although I&#8217;m not sure if it&#8217;s even supposed to.<\/li>\n<li>Luckily, it&#8217;s possible to <a href=\"http:\/\/wordpress.org\/support\/topic\/171263#post-741845\">hand-craft the enclosure<\/a> for a post for which no enclosure has been created. Though laborious, it works. The &#8220;enclosure&#8221; field&#8217;s value should consist of three lines:\n<ul>\n<li>Full URL to the file<\/li>\n<li>Length of the file in bytes<\/li>\n<li>Content-Type of the file (like &#8220;audio\/x-vorbis+ogg&#8221;)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Theoretically, publishing a podcast feed in WordPress should take nothing more than a link to the episode file, using an absolute URL. This should prompt WordPress to generate the appropriate enclosure tag in the feed. However, WordPress generates the enclosure only upon initial generation of a post, not on subsequent edits. So if the podcast [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[9387,26],"class_list":["post-1749","post","type-post","status-publish","format-standard","hentry","tag-blog","tag-open-source"],"_links":{"self":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/1749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/comments?post=1749"}],"version-history":[{"count":0,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/1749\/revisions"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/media?parent=1749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/categories?post=1749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/tags?post=1749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}