Reference

Post Media

A post media item is an image or video attached to a post. A post’s images and videos properties each hold an array of them.

{% for image in post.images %}
    <img src="{{ image.url }}" alt="{{ image.title }}" width="{{ image.width }}" height="{{ image.height }}">
{% endfor %}

Properties

id

The media item’s ID on the provider.

title

The media item’s title or alternative text, when the provider supplies one.

type

The kind of media item, either image or video.

url

The URL of the image or video file.

width

The width of the media item in pixels, when the provider reports it.

height

The height of the media item in pixels, when the provider reports it.