How to make WPQuery custom post type work in Twig / Timber
I think is as simple as using Timber’s Timber::get_posts() instead of the WP_Query class: $context[‘testimonials’] = Timber::get_posts( [‘post_type’ => ‘what_our_clients_say’, ‘posts_per_page’ => 2] ); Timber::render(‘whatever.twig, $context); … from there you can loop through the testimonials and access ACF values via meta: {% for post in testimonials %} <h1>{{ post.attribution }} says:</h1> {# more here #} … Read more