Download the PHP package pixelstudio/wp-instafeed without Composer
On this page you can find all versions of the php package pixelstudio/wp-instafeed. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pixelstudio/wp-instafeed
More information about pixelstudio/wp-instafeed
Files in pixelstudio/wp-instafeed
Package wp-instafeed
Short Description WordPress plugin to display Instagram photos of any user. Works without Access Token!
License MIT
Homepage https://github.com/hrsetyono/wp-instafeed/
Informations about the package wp-instafeed
Instagram Feed for WordPress
Display instagram photos of any user. Works without Access Token!
Note: Show by hashtag is not supported yet.
This plugin is based on this PHP Library.
Requirement
- PHP version 7.x
- WordPress version 4.9.x
Shortcode
SLIDER:
STANDARD GALLERY:
-
username (string)
-
items-per-slide (string / optional) - Amount of photos per slide. Default value is
4/3/2
which mean 4 items on desktop, 3 items on medium screen (< 767px) and 2 items on small screen (< 480px) - items (int / optional) - Amount of photos in the gallery. If this attribute exists, the instafeed become standard image gallery. No slider, but still has Lightbox.
Custom Code
If you want to show the photos with custom markup, you can get the raw JSON data with this function:
- $username (string)
- $endcursor (string) - Optional. Bit of data from the JSON to get next batch of photos. Default value is
null
.
EXAMPLE JSON
Notable parameters:
- endCursor - As mentioned above, use this value to get next batch of photos.
- medias => thumbnailSrc - 640x640 size, if you need lower resolution, get it from
thumbnails
array. - medias => displaySrc - Original size.