• bens1984

    (@bens1984)


    I created an RSS feed for podcasting using the MP3’s from the post. The rss_enclosure function would always generate the enclosure tag for the MP3, but suddenly this seems to have stopped working. The latest post is the only one affected so far.

    I’ve tried using older MP3’s that seemed to work, and using them on newer posts. But it seems that it no longer is able to generate the enclosure tag. From some of the forums I’ve looked over, some have suggested it’s an issue with the wp-cron.

    I’ve installed the Health Check and the loopback doesn’t have any issues.

    Any suggestions?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    What plugin are you using for your podcasting functionality?

    Thread Starter bens1984

    (@bens1984)

    I’m not using a plugin, just a PHP file I developed/customized from an RSS feed template for WordPress. Also, if you view the RSS feed, it’ll look like it’s working now, but only because I created a temporary workaround by manually creating the enclosure tag for a post using Advanced Custom Fields.

    • This reply was modified 6 years ago by bens1984.
    egmarshall

    (@egmarshall)

    Having the same issue with media uploads of MP3 files. Older files work.

    Thread Starter bens1984

    (@bens1984)

    Looks like WordPress changed the post metadata format but didn’t update the rss_enclosure function to work with the metadata update. There’s no longer an enclosure key in the metadata array, but the enclosure is already generated in the metadata array with the key “mp3_enclosure”.

    Instead of using rss_enclosure(), something like this will output the MP3 enclosure:

    $metadata = get_post_custom($post_id);
    echo $metadata[‘mp3_enclosure’][0];

    Thread Starter bens1984

    (@bens1984)

    Nevermind the last post, I just realized I was looking at the Advanced Custom fields I created for the post meta. X)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Enclosure for Post’s MP3 Stopped Working for RSS Feed’ is closed to new replies.