Support

Account

Home Forums General Issues How can I use Advanced Custom Fields with timber to retrieve Array values? Reply To: How can I use Advanced Custom Fields with timber to retrieve Array values?

  • Sorry, I’m probably not going to be of much help to you. But you will find that integration of ACF into page builders and template engines is scarce and getting help here will be hard unless someone that has experience with both happens along.

    However, I can give it a stab, you say that you are using Timber. The file name ends in .twig, so I am assuming that timber uses twig templates. If this is the case then there is an example of looping over an array there.

    Again, this is only a guess using the example taken from that document.

    
    {% for item in author %}
      <li><a href="{{ item.user_url }}">{{ item.display_name }}</a></li>
    {% endfor %}