Support » Plugins » [Plugin: Podcasting] new urls aren’t retained on save

  • I’m not sure what is going on here, but the podcasting plugin isn’t saving file urls when I save my posts. The url is a valid audio file, and the javascript works great on the edit post page, but the url is lost when I save the post.

    I’m using Podcasting 1.64 and WP 2.5.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jeffmikels

    (@jeffmikels)

    By the way, I’m trying to use the podcasting plugin to add extra media files to my posts like images, pdfs, etc. I’m looking for an easy way to add “attachments” to my posts.

    Are you using a full URL or relative URL? You need to use a full URL when adding a file or WordPress won’t find the file to enclose. If you are already using a full URL, could you email me a few sample URLs so that I can do some testing?

    Regarding images and such, Podcasting (and WordPress) will only recognize files with a mime type of audio/* or video/*. Other files will not be recognized automatically. To get around this, you can add a new custom field called enclosure. Then format the value of the field like so:

    Full URL to File
    Size of the file in bytes
    MIME type (ex. audio/mpeg)

    Then save the custom field, reload the post, and you can use Podcasting from there to tag things for iTunes / alternative feeds if you wish.

    Thread Starter jeffmikels

    (@jeffmikels)

    I know about the enclosure field, but I’m trying to set up a blog for other people to use, and I didn’t want to have two forms for people to fill in.

    The MIME type of pdf is application/pdf and the MIME type of jpg is often image/jpg. Those are the files I want to use, but since podcasting uses the do_enclosure function from WordPress, the “invalid” types get rejected.

    Well, if you want those filetypes to enclose automatically, you could open up wp-includes/functions.php and find line 528:

    $allowed_types = array( 'video', 'audio' );

    Then, add the application and image file types to the array like so:

    $allowed_types = array( 'video', 'audio', 'application', 'image' );

    Be aware this will enclose all applications and images linked to in a post, even if they weren’t run through WordPress. However, it should meet your needs. Just don’t forget to modify it after each WordPress update you do.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Podcasting] new urls aren’t retained on save’ is closed to new replies.