is there a way in twig to echo a variable in literals, like this?
{{ mb.get_the_post_thumbnail( post.ID, 'full', {'class': 'sec-mitarbeiter-image {{objectPositionClass}} '} ) }}
Result:
class="sec-mitarbeiter-image {{objectPositionClass}}"
Expected:
class="sec-mitarbeiter-image object-position-top"
2
Answers
Try this
I guess you want simple string concatenation:
Or interpolation: