<p>When you added the <code>type</code> param to your <code>{% paginate %}</code> tag, you removed the <code>as entries</code> bit, which is required. (That tells the tag what variable name it should give to the current page’s entries.)</p>

<pre><code>{% paginate craft.entries.section('woods').type('mahogony').limit(5) as entries %}
</code></pre>

CC BY-SA 3.0
2014-10-28T09:25:40.063Z
2014-10-28T09:25:40.063Z
Brandon Kelly
<p>Total noob here.  Have managed to output entries and paginate them with this:</p>

<pre><code>{% paginate craft.entries.section('woods').limit(5) as entries %}
    {% for entry in entries %}
        ....
    {% endfor %}
{% endpaginate %}
</code></pre>

<p>But I cannot figure out how to output just entries of a certain type or entries from a certain category within a category group.</p>

<pre><code>{% paginate craft.entries.section('woods').type('mahogony').limit(5) %}
    {% for entry in entries %}
        ...
    {% endfor %}
{% endpaginate %}
</code></pre>

<p>ain't flying me anywhere but into a tree.</p>

<p>I'm sure it is something basic.</p>

CC BY-SA 3.0
2014-10-26T23:20:05.893Z
That looks O.K. to me. What happens if you do this? `{{ craft.entries.section('woods').type('mahogony').limit(5).find()|length }}`
Brad Bell
<entry><entry-type>
Output Entry Type and/ or Category
# Output Entry Type and/ or Category

(Asked by: username_0 on 2014-10-26)

Total noob here.  Have managed to output entries and paginate them with this:
{% paginate craft.entries.section('woods').limit(5) as entries %}
    {% for entry in entries %}
        ....
    {% endfor %}
{% endpaginate %}

But I cannot figure out how to output just entries of a certain type or entries from a certain category within a category group.
{% paginate craft.entries.section('woods').type('mahogony').limit(5) %}
    {% for entry in entries %}
        ...
    {% endfor %}
{% endpaginate %}

ain't flying me anywhere but into a tree.
I'm sure it is something basic.

**Tags:** entry, entry-type
> **Comments:**
> **username_1**: That looks O.K. to me. What happens if you do this? `{{ craft.entries.section('woods').type('mahogony').limit(5).find()|length }}`  

---

## 1 answers

### Answer by username_2 on 2014-10-28. Score: 1

When you added the type param to your {% paginate %} tag, you removed the as entries bit, which is required. (That tells the tag what variable name it should give to the current page’s entries.)
{% paginate craft.entries.section('woods').type('mahogony').limit(5) as entries %}


---

