title: Ouput ACF Color Picker Field Type from categories
body: <p>I want to get the color of a category. In ACF I have created a color picker field type, which I can then adjust via Posts &gt; Categories &gt; Category.</p>
  <p>How can I get the output of an ACF color picker field type through Timber?</p>
  <p>I just can't get it done. What am I doing wrong?</p>
  <p>This is what I have now.</p>
  <p><strong>Timber controller (single.php)</strong></p>
  <pre><code>$context         = Timber::context();
  $timber_post     = Timber::query_post();
  $context['post'] = $timber_post;
  
  $context['categories']  = get_terms(array('taxonomy' =&gt; 'category'));
  $context['tags']        = get_terms(array('taxonomy' =&gt; 'post_tag'));
  
  if ( post_password_required( $timber_post-&gt;ID ) ) {
      Timber::render( 'single-password.twig', $context );
  } else {
      Timber::render( array(
      'posts/' . $timber_post-&gt;ID . '.twig',
      'posts/' . $timber_post-&gt;post_type . '.twig',
      'posts/' . $timber_post-&gt;slug . '.twig',
      'single.twig' ),
      $context );
  }
  </code></pre>
  <p><strong>Twig file (post.twig)</strong></p>
  <pre><code>&lt;div class=&quot;badge bg-[{{ category.meta('category_color') }}] mb-5&quot;&gt;
  
    {{ post.category }}
  
  &lt;/div&gt;
  </code></pre>