Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jarednova

    (@jarednova)

    Hi riikk, you just need to tell Timber how to interpret the data you get back from ACF, this line should do it….

    {% set relations = TimberPost(post.get_field('my-custom-fieldname')) %}

    The correct syntax for thumbnail is…

    <img src="{{relation.thumbnail.src}}" alt="" />

    (as opposed to post_thumbnail)

    Thread Starter riikk

    (@riikk)

    Hi jarednova,

    thanks. that worked.
    in between i had it also working using the function method:

    <p>{{function('get_the_post_thumbnail', post.ID, 'medium' )}}</p>
    Plugin Author jarednova

    (@jarednova)

    Great to hear!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘getting images from ACF relationship Field’ is closed to new replies.