Body: <p>I have a channel with content and I want to only display content from a certain category.</p>
  
  <p>Should I use a slug? Just trying to wrap my head around this.</p>
  
  <p>This is what I have now:</p>
  
  <pre><code>    {% for product in craft.entries.find({section: 'Product', limit:'4',}) %}
  
      {% for image in product.photo %}
          &lt;img src="{{ image.getUrl('bottom') }}" /&gt;
          &lt;p&gt;&lt;a href="{{ product.url }}"&gt;Link to pants!&lt;/a&gt;&lt;/p&gt;
          &lt;p&gt;{{ product.title }}&lt;/p&gt;
          &lt;p&gt;{{ product.price }}&lt;/p&gt;
          &lt;p&gt;{{ category.title }}&lt;/p&gt;
      {% endfor %}
  
      {% endfor %}
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-11T15:26:57.247Z
Comments.Text: Maybe this will help: http://buildwithcraft.com/help/entries-related-to-category
Comments.UserDisplayName: Jamie Wade
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-12T04:45:23.393Z
Comments.Text: Thanks Jamie. How do I pull entry detail from that category I filtered out?
Comments.UserDisplayName: billpixby
Tags: <templating><categories>
Title: How do I omit a page with just a catagory
ThreadText: # How do I omit a page with just a catagory
  
  (Asked by: username_0 on 2014-08-11)
  
  I have a channel with content and I want to only display content from a certain category.
  
  Should I use a slug? Just trying to wrap my head around this.
  
  This is what I have now:
  
  ```
      {% for product in craft.entries.find({section: 'Product', limit:'4',}) %}
  
      {% for image in product.photo %}
          <img src="{{ image.getUrl('bottom') }}" />
          <p><a href="{{ product.url }}">Link to pants!</a></p>
          <p>{{ product.title }}</p>
          <p>{{ product.price }}</p>
          <p>{{ category.title }}</p>
      {% endfor %}
  
      {% endfor %}
  
  ```
  
  **Tags:** templating, categories
  
  > **Comments:**
  > **username_1**: Maybe this will help: http://buildwithcraft.com/help/entries-related-to-category  
  > **username_0**: Thanks username_1. How do I pull entry detail from that category I filtered out?  
  
  ---
  
  ## 0 answers
  
  