<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>

CC BY-SA 3.0
2014-08-11T15:26:57.247Z
Maybe this will help: http://buildwithcraft.com/help/entries-related-to-category
Jamie Wade
CC BY-SA 3.0
2014-08-12T04:45:23.393Z
Thanks Jamie. How do I pull entry detail from that category I filtered out?
billpixby
<templating><categories>
How do I omit a page with just a catagory
# 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 %}
        
        Link to pants!
        {{ product.title }}
        {{ product.price }}
        {{ category.title }}
    {% endfor %}

    {% endfor %}

**Tags:** templating, categories

> **Comments:**
> **username_1**: Maybe this will help: http://buildwithcraft.com/help/entries-related-to-category  
> **username_0**: Thanks Jamie. How do I pull entry detail from that category I filtered out?  

---

## 0 answers

