Timber Post only getting attachment ID
-
Hello.
Love this plugin!In a custom theme build with Timber, we’re only getting the ID of the attachment as part of the Timber Post data. All options on the field (array, url, id) we tested and each setting only gives the id.
{{ post.photo }} -> ID
{{ post.get_field(‘photo’) -> Array | URL | ID (as set in field options)This might be an edge case for the plugin, and the get_field option might be the best option, but wanted to share the observation.
Thanks for your work!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Timber Post only getting attachment ID’ is closed to new replies.