<p>You can get the entry’s current type handle via <a href="http://buildwithcraft.com/docs/templating/entrymodel#type"><code>entry.type</code></a>, and craft.entries supports a <a href="http://buildwithcraft.com/docs/templating/craft.entries#type"><code>type</code></a> param for finding entries of a given type, so you can plug those two together:</p>

<pre><code>{% set otherEntries = craft.entries.section('blog').type(entry.type) %}
</code></pre>

CC BY-SA 3.0
2014-06-21T05:07:43.083Z
2014-06-21T05:07:43.083Z
Brandon Kelly
<p>Yes. This is certainly possible.</p>

<p>I'm not sure how you're templating / naming is setup but you can get entries by entry type and you can check an entry's type. To get entries by a specific type:</p>

<p><code>craft.entries.section('blog').find({type: 'imagePost', limit: 10})</code></p>

<p>Here's some helpful references for craft.entries:
<a href="http://straightupcraft.com/articles/cheat-sheet-craft.entries">Entries Cheat Sheet</a> - <a href="http://buildwithcraft.com/docs/templating/entrymodel">Craft Docs For the Entry Model</a></p>

<p>You could structure some kind of comparison, to see if the current entry is a specific type, and if it is query and render the desired additional entries.</p>

<pre><code>{% if entry.type == 'imagePost' %}
  {% for post in craft.entries.section('blog').find({type: 'imagePost'}) %}
...
{% if entry.type == 'textPost' %}
  {% for post in craft.entries.section('blog').find({type: 'textPost'}) %}
...
</code></pre>

<p>However there are many ways to do what you want depending on your setup. Please note I used the name imagePost instead of image, to avoid any confusion there might be with a common name like image. I'm not sure if that could cause name conflicts or if it's a reserved keyword / field etc.</p>

CC BY-SA 3.0
2014-06-21T04:52:40.680Z
2014-06-21T04:52:40.680Z
Bill Columbia
<p>I'm creating a tumblr-esque blog with a bunch of different entry types. </p>

<p>One of the entry types will be named "Image". When I'm on the entry page for an "Image" entry, I'd like to be able to show 10 more entries with the same "Image" entry type. </p>

<p>Is this possible?</p>

<entry-type>
Is it possible to show more entries of the same entry type as the current entry?
# Is it possible to show more entries of the same entry type as the current entry?

(Asked by: username_0 on 2014-06-21)

I'm creating a tumblr-esque blog with a bunch of different entry types.

One of the entry types will be named "Image". When I'm on the entry page for an "Image" entry, I'd like to be able to show 10 more entries with the same "Image" entry type.

Is this possible?

**Tags:** entry-type


---

## 2 answers

### Answer by username_1 on 2014-06-21. Score: 5 | Accepted answer

You can get the entry’s current type handle via entry.type, and craft.entries supports a type param for finding entries of a given type, so you can plug those two together:
{% set otherEntries = craft.entries.section('blog').type(entry.type) %}


---

### Answer by username_2 on 2014-06-21. Score: 5

Yes. This is certainly possible.
I'm not sure how you're templating / naming is setup but you can get entries by entry type and you can check an entry's type. To get entries by a specific type:
craft.entries.section('blog').find({type: 'imagePost', limit: 10})
Here's some helpful references for craft.entries:
Entries Cheat Sheet - Craft Docs For the Entry Model
You could structure some kind of comparison, to see if the current entry is a specific type, and if it is query and render the desired additional entries.
{% if entry.type == 'imagePost' %}
  {% for post in craft.entries.section('blog').find({type: 'imagePost'}) %}
...
{% if entry.type == 'textPost' %}
  {% for post in craft.entries.section('blog').find({type: 'textPost'}) %}
...

However there are many ways to do what you want depending on your setup. Please note I used the name imagePost instead of image, to avoid any confusion there might be with a common name like image. I'm not sure if that could cause name conflicts or if it's a reserved keyword / field etc.


---

