• I am working with a new pluggin on our site and this uses Twig in a ‘Twig Plain’ block on page/post to render relevant information.

    As part of this I am looking to use information from an ACF for the current user (we have a few additional fields attached to each user).

    Can anyone help in pointing out to me how I might get this user ACF information (or indeed any user information) in the Twig block?

    I have tried using a snippet pluggin I use elsewhere to render it into a Twig variable, ie.
    {% set variable %}
    [xyz-ips snippet=ACF-ID]
    {% endset %}
    This works if I simply render the variable back, but not if I want to use it in a logic expression.

The topic ‘User ACF and Twig’ is closed to new replies.