2 votes

Problem with loop.last

Make sure to add .all() to the end of your craft.entries element query, which will execute it and return the results as a simple array: {% set entry = craft.entries.relatedTo(asset).orderBy('title')....
Mats Mikkel Rummelhoff's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible