Skip to main content

[WP] List of supported variables for Instagram gallery

{{image_tag}}
HTML tag for RoyalSlider image (it's IMG tag for normal images and A tag for lazy-loaded), includes alt tag, video attribute, and big image attribute (if available). Read more in docs.

{{image_url}}
URL to main image.

{{large_image_url}}
URL to big image.

{{thumbnail}}
Returns thumbnail (rsTmb) RoyalSlider element. Read more in docs.

{{thumbnail_url}}
URL to thumbnail image.

{{title}}
Image title.

{{url}}
URL to Instagram post.

{{date}}
Date of Instagram post (formatted using default WordPress date_format).

{{time}}
Time of Instagram post (formatted using default WordPress time_format).

{{media_element}}
Object, returned by Instagram, contains all above data and more. Use {{debug_media_element}} variable to see what it contains. Contents can be accessed via Mustache dot syntax ({{media_element.something.somethingelse}}). For example to get comments count, use: {{media_element.comments.count}}, or to get likes count {{media_element.likes.count}}