scottsweb / wp-instagram-widget

❌ A WordPress widget for showing your latest Instagram photos.
115 stars 62 forks source link

Add video url in data-video-url if post is a video #97

Closed chartrandf closed 4 years ago

chartrandf commented 6 years ago

Hey there!

I wanted to show all images and videos inside a lightbox instead of moving the user to a Instagram page. I was able to do it with images, but not with videos.

I added an extra layer to scraper video page and fetch the video URL related to the post. I reused the same code you had in scrape_instagram function.

I think people will now be able to do more with the plugin. Also, the URL is only in a data attribute, so it's not supposed to have an impact on how the plugin works.

scottsweb commented 6 years ago

Thanks for this, I need to set aside some time to test it properly as I am little concerned about a second request. I want to make sure that is only happening when absolutely necessary.

scottsweb commented 4 years ago

Thanks for your contribution.

This project is being archived (background in #118). Instagram filed a trademark complaint which saw the plugin removed from WordPress.org and then proceeded to block it from accessing instagram.com. All pull requests are being closed and it will soon be in a read only state.