• Resolved Seth Rubenstein

    (@smrubenstein)


    So I really like the plugin and the service but how would I go about disabling its usage on say if I manually call wp_oembed_get in my theme and restrict it to only when in the post content? Specifically its messing up the way I do instagram photos on posts I use wp_oembed_get to get the official oembed image which just returns the image no border or comments or like or anything else that the iframely instagram returns. I have no problem with that in my posts content but not when I’m calling it elsewhere.

    https://www.ads-software.com/plugins/iframely/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ivan Paramonau

    (@ivanp)

    It’s an interesting question. We actually see both an image and a card (with comments etc) in our API. Can output just one so we stick with the card.

    I’ll answer your question tomorrow. Need to think a little bit on how to best address the issue.

    Thanks for reporting!

    Thread Starter Seth Rubenstein

    (@smrubenstein)

    Yea would be just nice to plop something into functions.php or honestly by default my feeling is that the behaviour of the plugin should be limited to only filtering post content not the whole of oembed_get

    Plugin Author Ivan Paramonau

    (@ivanp)

    We couldn’t find the option to limit our oembed endpoint to posts only.
    So we tweaked the server APIs to output raw image for Instagram and Facebook posts.
    Please let me know if it worked for you.

    Also, we’ll start working on an option to selectively use Iframely for specific URLs only. But this will become available in newer version early next year. Luckily, not a long wait – happy holidays! ??

    Thread Starter Seth Rubenstein

    (@smrubenstein)

    Awesome. Thanks guys. Works like a charm now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to disable on wp_oembed_get and allow only for in post content?’ is closed to new replies.