Iframely Responsive Embeds
[resolved] How to disable on wp_oembed_get and allow only for in post content? (5 posts)

  1. Seth Rubenstein
    Posted 2 years ago #

    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.


  2. Ivan Paramonau
    Plugin Author

    Posted 2 years ago #

    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!

  3. Seth Rubenstein
    Posted 2 years ago #

    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

  4. Ivan Paramonau
    Plugin Author

    Posted 2 years ago #

    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! :)

  5. Seth Rubenstein
    Posted 2 years ago #

    Awesome. Thanks guys. Works like a charm now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Iframely Responsive Embeds
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic