WordPress.org

Ready to get started?Download WordPress

Forums

oEmbed Instagram
Short URL support (6 posts)

  1. jasontucker
    Member
    Posted 1 year ago #

    I'd like to see short url support, the instagram iOS app uses this short domain name which isn't detected by your plugin:
    http://instagr.am/p/NKPA3LPFVY/

    http://wordpress.org/extend/plugins/oembed-instagram/

  2. Short url support can be added with this code, if you want to add it yourself: wp_embed_register_handler(
    'instagram',
    '#http://instagr.am/p/[a-zA-Z0-9\-_]+/?$#i',
    array(&$this, 'oembed_handler')
    );

    Just look for the similar code that uses the full 'instagram.com' domain and stick this after. This code also adds support for image IDs with underscores (e.g. http://instagr.am/p/OXTzfLSY_M/)

  3. deanhewson
    Member
    Posted 1 year ago #

    Kailey that is awesome awesome. This really needs to be supported by the plugin itself - I'm not entirely sure where people are supposed to be getting the web address of their images if not through their iOS or Android app.

  4. Support for Instagram oEmbeds have actually landed in core, so once WordPress 3.5 comes out, you won't even need a plugin.

  5. deanhewson
    Member
    Posted 1 year ago #

    Boom

  6. susanjanebradfield
    Member
    Posted 1 year ago #

    Hi.

    My site is http://www.susanjanebradfield.com

    Can i get Instagram on this site?

    I am fairly new to this and have done well so far but this has got me really confused?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic