[wp-hackers] Audio RSS enclosure problem
cross at thisismyurl.com
Sat Mar 19 23:25:39 UTC 2011
Bryan, using the publish hook you could add the link directly to the post with the $content value. This would accomplish both the automation you're seeking and also trigger the audio enclosure.
On 2011-03-19, at 8:21 PM, Bryan Harley wrote:
> So I have a client with a website for their podcast. To make it easy,
> I just have them upload their audio file to a post and then use
> get_children to grab the audio attachment and display it where I want
> on the page. That way they don't have to deal with custom fields or
> inserting code or anything like that.
> Only problem... WP will only auto-create the audio enclosure in the
> RSS feed if you have the mp3 linked from the post content. Since I'm
> using attachments, it won't auto-create the enclosure. Any ideas?
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Online Portfolio - http://christopherross.ca
Personal Blog - http://thisismyurl.com
Fredericton - 506.238.4661
San Diego - 858.201.4912
More information about the wp-hackers