Twig (Timber) + Wordpress - showing categories of a post
<p>I am imagining suport for Timber is pretty thin, but perhaps my issue may be more twig related, or even just best php practices?</p>

<p>I am using ACF to list a group of posts on a page. As well as the usual details (title, content etc...) I want to display the categories that are assigned to the posts.</p>

<p>TIMBER CONTROLLER (jobs.php)</p>

<pre><code>$context = Timber::get_context();
$post = new TimberPost();
$context['post'] = $post;
$context['categories'] = Timber::get_terms('category', array('parent' =&gt; 0));

$args = array(
'numberposts' =&gt; -1,
'post_type' =&gt; 'jobs'
);

$context['job'] = Timber::get_posts($args);

Timber::render( 'page-templates/job.twig', $context );
</code></pre>

<p>TWIG FILE</p>

<pre><code>  &lt;section id="job-feed"&gt;
    &lt;h3&gt; term.name }}&lt;/h3&gt;
    {% for post in job %}
      &lt;div class="job mix"&gt;
        &lt;h2&gt;{{ post.title }}&lt;/h2&gt; 
        &lt;p&gt;{{ post.content }}&lt;/p&gt; 

        &lt;p&gt;{{ function('the_category', '') }}

      &lt;/div&gt;
    {% endfor %}    
  &lt;/section&gt;
</code></pre>

<p>You will see I've tried reverting to using a WP function as I cannot find a way to do this in Timber, or any other way.</p>