jsmrtn / craftagram

Grab Instagram content through the Instagram Basic Display API
Other
14 stars 8 forks source link

PHP 7.4 support #4

Closed darylknight closed 4 years ago

darylknight commented 4 years ago

I'm seeing this error locally, usually happens with plugins that don't support PHP 7.4:

image

{% set craftagram = craft.craftagram.getInstagramFeed() %}

{% if craftagram|length %}
    {% for item in craftagram.data %}
        <img src={{item.media_url}} />
    {% endfor %}
{% endif %}