title: WordPress Timber getting posts of a custom post type
body: <p>I'm just digging into WordPress plus Timber and I came upon a problem that I can't resolve.</p>
  
  <p>I have created a custom post type called "project", within which I created a custom field called "project_category". That custom field contains a checkbox of two choices (graphic, web design).</p>
  
  <p>The question is what can I do to display all the projects that contains the project_category "graphic"?</p>
  
  <p>Here is how I started:</p>
  
  <p><strong>graphic.php template</strong></p>
  
  <p>I created a graphic.php file with those wp queries:</p>
  
  <pre><code>$context = Timber::get_context();
  
  $args = array(
      // Get post type project
      'post_type' =&gt; 'project',
      // Get all posts
      'posts_per_page' =&gt; -1,
      // Gest post by "graphic" category
      'meta_query' =&gt; array(
          array(
              'key' =&gt; 'project_category',
              'value' =&gt; 'graphic',
              'compare' =&gt; 'LIKE'
          )
      ),
      // Order by post date
      'orderby' =&gt; array(
          'date' =&gt; 'DESC'
      ),
  );
  
  $posts = Timber::get_posts( $args );
  $context['graphic'] = Timber::get_posts('$args');
  
  Timber::render( 'graphic.twig', $context );
  </code></pre>
  
  <p><strong>graphic.twig</strong>
  Then I create a twig file with this loop.</p>
  
  <pre><code>{% extends "base.twig" %}
  
  {% block content %}
  
  &lt;div class="l-container"&gt;
  
      &lt;main role="main"&gt;
          &lt;div class="l-row"&gt;
              &lt;h1&gt;My graphic design projects&lt;/h1&gt;
  
              {% for post in posts %}
  
                  &lt;a href="{{ post.link }}" class="project-images l-col l-col--1-of-4 l-col--m-1-of-2"&gt;
                      &lt;h2&gt;{{ post.title }}&lt;/h2&gt;
  
                          {% if post.thumbnail %}
                              &lt;img src="{{post.get_thumbnail.src('medium_large')}}" alt="{{post.title}}" /&gt;
                          {% endif %}
                  &lt;/a&gt;
  
              {% endfor %}
          &lt;/div&gt; 
      &lt;/main&gt;
  
  &lt;/div&gt;
  
  {% endblock %}
  </code></pre>
  
  <p>With this solution I can get only one project. When I want to display more than one project the project doesn't show up.
  I tried to use "for post in projects" or "for post in post.projects", but nothing worked out really.</p>
  
  <p>What can I do to display all the projects that contains the project_category "graphic"?</p>