[wp-hackers] Audio RSS enclosure problem

Bryan Harley bryanharley at gmail.com
Sun Mar 20 04:23:30 UTC 2011


Thanks Christopher.  I followed the steps here:
http://www.wprecipes.com/how-to-automatically-insert-content-after-each-post

And while the link to the audio was successfully added, it didn't
trigger the audio enclosure for some reason.



On Sat, Mar 19, 2011 at 4:25 PM, Christopher Ross <cross at thisismyurl.com> wrote:
> 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
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
>
> __
>
> Christopher Ross
> Online Portfolio - http://christopherross.ca
> Personal Blog - http://thisismyurl.com
>
> Fredericton - 506.238.4661
> San Diego   - 858.201.4912
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list