← Back to Blog Featured Files Support
Sam
Hi,
I am getting the following error only on posts that have no file attached: An exception has been thrown during the rendering of a template ("Invalid argument supplied for foreach()").
This is the line highlighted: {% for file in post.featured_files() %}
What am I missing?
Thanks.
Kabira Paresh
Sam said:
Hi,
I am getting the following error only on posts that have no file attached: An exception has been thrown during the rendering of a template ("Invalid argument supplied for foreach()").
This is the line highlighted: {% for file in post.featured_files() %}
What am I missing?
Thanks.
Thanks for reporting bug. Bug has been fixed now kindly update plugin.
Last updated
1-3 of 3