WordPress.org

Ready to get started?Download WordPress

Forums

[Problem] How to disable enclosure (10 posts)

  1. krembo99
    Member
    Posted 6 years ago #

    I use WordPress for quite some time now , and it is the first time I have noticed this feature.
    I hade made a "click here" link to an MMS stream (.asf) and i was surprised to see that on my custom fields area in my template, there was a new key called "enclosure" and the value of the link I have supplied.
    I searched a bit and read the forums , but found no way of disable it ...
    I can not delete the key in the custome fields , or update to another value, because it automatically pops back.
    I can understand the value of it for podcasting, but not the fact that there is NO WAY to disable it .
    I do not want this key/value to show in my template, and for sure not in my RSS feed (this is not MY video or podcast, it's just a link..)
    anybody knows how to go around it ? (except creating an empty HTML file with refresh value)

  2. VFHwebdev
    Member
    Posted 6 years ago #

    Did you find a solution? I'm running into the same problem.

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    If you turn off all ping sending services, this will disable it from finding enclosures as well.

    Add this to your theme's functions.php file:
    remove_action('do_pings', 'do_all_pings', 10, 1);

  4. VFHwebdev
    Member
    Posted 6 years ago #

    "If you turn off all ping sending services, this will disable it from finding enclosures as well."

    Are there any adverse side effects to turning off pings?

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Err... Well, pings won't work afterwards. :-D

    Other than that, not really.

  6. VFHwebdev
    Member
    Posted 6 years ago #

    Yeah I kind of figured that, but what exactly does that mean? So pingbacks won't work? or my listing on Technocrati (or other aggregators) won't update when I publish my blog? Would my RSS file still update, just without the enclosures?

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    So pingbacks won't work? or my listing on Technocrati (or other aggregators) won't update when I publish my blog? Would my RSS file still update, just without the enclosures?

    Outgoing pingbacks stop working. Service pings (like to pingomatic) stop. RSS file continues working as normal, but without enclosures.

  8. VFHwebdev
    Member
    Posted 6 years ago #

    First, I appreciate all your help.

    Outgoing pingbacks stop working. Service pings (like to pingomatic) stop.

    That seems pretty problematic. There's no other way to turn this feature off?

    I'm using WP to run a podcast, we frequently have related audio/video features we want to include and linking to them is creating multiple enclosures in each post, which of course is a big no-no. It makes the podcast break in iTunes.

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    There's no other way to turn this feature off?

    Edit the core code to remove it. That's the only other way.

    And enclosures are the only thing that make podcasts actually work. If you disable enclosures, then you suddenly don't have a podcast.

    My advice would be to not link to things that are audio or video except for your podcast files. At least, don't link to them directly. Link to a page with them on it or something else that doesn't return the audio or video MIME type.

    Alternately, use podPress. I think it prevents the multiple enclosure problem.

  10. thegblog
    Member
    Posted 5 years ago #

    I'm having the same issue. I've got a flash audio player that plays music for local bands, but when people subscribe to the feed, they can download the song for free.

    I've asked feedburner for help, but got no answer after 10 days.

    I finally went to the plugin page, and it says to delete the enclosure from custom fields every time you update the post.

    Seems to be working for me, hope it helps. It is, however a pain in the butt.

Topic Closed

This topic has been closed to new replies.

About this Topic