Support » Fixing WordPress » How to automatically search my entire site for any content embedded with oEmbed?

  • Resolved Carl Gross

    (@carlgross)


    Hi all. How can I carry out an automatic search of all pages/posts on my site for any content embedded using oEmbed (preferably Facebook/Instagram content)?

    The reason I ask is because this WPBeginner post says that on October 24th, all Facebook or Instagram content embedded on a site using oEmbed will be deprecated, and such content will be (slightly) broken. I’d like to first determine how much oEmbed content I have on my site. My site is has a relatively large amount of pages/posts (content added by others), so manually searching each will be a bit tedious.

    Right now I’m not looking for a fix to these cases–I’m just trying to get a feel for how many cases need fixing on my site. I may not need any at all 🙂

    FYI my site uses Classic Editor throughought–not Gutenberg.

    Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Have a read here: https://php.watch/articles/wordpress-facebook-instagram-oembed
    It might be easier to follow their advice and install the oEmbed Plus plugin: https://wordpress.org/plugins/oembed-plus/

    Thread Starter Carl Gross

    (@carlgross)

    Thanks for the reply, but unless I missed it, that page doesn’t exactly answer my question. The page describes a plugin that will fix the issue. But ideally I’d like to first check if the issue applies to me at all. I’d rather not install a plugin, and spend time configuring it, if the issue doesn’t apply to me. But in the event that I can’t do that, or it is too time consuming, I guess I could install/setup this plugin as a fall back option.

    AFAIK you post the link and WordPress uses the API to create the Embed content dynamically, so nothing is affected in terms of the HTML.

    Thread Starter Carl Gross

    (@carlgross)

    Yeah. I figured I might have to search the database. But if so, what exactly to search for?

    From that article:

    Due to this change, WordPress 5.5.1 plans to remove Facebook and Instagram content embed support and hand over this functionality to a third party plugin.

    You can either do nothing, and lose the oEmbed feature but retain all your content as it is now. Or, add the plugin and retain the oEmbed feature, provided via the plugin rather than WordPress.

    Thread Starter Carl Gross

    (@carlgross)

    >> You can either do nothing, and lose the oEmbed feature but retain all your content as it is now.

    Right. But if I do nothing, how much content will I lose? Is it zero, or is it a lot? That’s what I’m trying to figure out right now. If I can’t figure that out, then I may just install this plugin (or another) and call it a day.

    Also, that article specifically says the plugin fixes the issue for content embedded using the block editor (Gutenberg). I’m not sure if it covers classic editor :-/ I’ll ask in their forums.

    Thread Starter Carl Gross

    (@carlgross)

    @pidengmor FYI I asked the devs of that plugin, and they gave me an SQL query which returns all posts with FB/IG oEmbed content. If you’re interested, you can see the post here. One interesting note is that my site seems to have one post with FB oEmbed content. But that particular post doesn’t have any of the rich content described in this article–the post contains only a plain link to a FB page. So because of that, it looks like I have no content that needs fixing.

    Happy to see you got a definitive answer. That query looks like the ideal solution. Always good to determine whether a plugin is actually necessary or not.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to automatically search my entire site for any content embedded with oEmbed?’ is closed to new replies.