<p>In order to display all other entries by an author except the current one, you will need to perform another step — either by filtering out the current entry from the query or adding a conditional.</p>

<pre><code>{% set authorId = entry.author.id %}
{% set allEntryIds = craft.entries.section('blog').authorId(authorId).limit(null).ids() %}
{% set otherEntryIds = allEntryIds|without(entry.id) %}
{% set otherEntries = craft.entries.section('blog').id(otherEntryIds) %}

&lt;ul&gt;
    {% for entry in otherEntries %}
        &lt;li&gt;&lt;a href="{{ entry.url }}"&gt;{{ entry.title }}&lt;/a&gt;&lt;/li&gt;
    {% endfor %}
&lt;/ul&gt;
</code></pre>

<p>or</p>

<pre><code>{% set authorId = entry.author.id %}
{% set authorEntries = craft.entries.section('blog').authorId(authorId).limit(null) %}
&lt;ul&gt;
    {% for authorEntry in authorEntries %}
        {% if not authorEntry.id == entry.id %}
            &lt;li&gt;&lt;a href="{{ entry.url }}"&gt;{{ entry.title }}&lt;/a&gt;&lt;/li&gt;
        {% endif %}
    {% endfor %}
&lt;/ul&gt;
</code></pre>

CC BY-SA 3.0
2015-06-05T16:57:56.560Z
2015-06-05T17:04:07.680Z
2015-06-05T17:04:07.680Z
Douglas McDonald
<p>You can get entries by an author like this:</p>

<pre><code>{% set authorPosts = craft.entries.section('posts').authorId(entry.authorId) %}
</code></pre>

<p>I think this returns an <code>ElementCriteriaModel</code> so you could do things like <code>.first()</code> <code>.limit(1)</code> etc but you can use it in a twig loop as is.</p>

CC BY-SA 3.0
2015-06-05T08:52:48.920Z
2015-06-08T10:05:45.330Z
2015-06-08T10:05:45.330Z
Alec Ritson
<p>I have a blog section on my site and would like a "More posts by this author" list. How would I go about this, the logic is clear but the syntax to write for it is not forthcoming.</p>

<loop><author>
Display entries by current entry author?
# Display entries by current entry author?

(Asked by: username_0 on 2015-06-05)

I have a blog section on my site and would like a "More posts by this author" list. How would I go about this, the logic is clear but the syntax to write for it is not forthcoming.

**Tags:** loop, author

---

## 2 answers

### Answer by username_1 on 2015-06-05. Score: 5

In order to display all other entries by an author except the current one, you will need to perform another step — either by filtering out the current entry from the query or adding a conditional.
{% set authorId = entry.author.id %}
{% set allEntryIds = craft.entries.section('blog').authorId(authorId).limit(null).ids() %}
{% set otherEntryIds = allEntryIds|without(entry.id) %}
{% set otherEntries = craft.entries.section('blog').id(otherEntryIds) %}


    {% for entry in otherEntries %}
        {{ entry.title }}
    {% endfor %}


or
{% set authorId = entry.author.id %}
{% set authorEntries = craft.entries.section('blog').authorId(authorId).limit(null) %}

    {% for authorEntry in authorEntries %}
        {% if not authorEntry.id == entry.id %}
            {{ entry.title }}
        {% endif %}
    {% endfor %}


---

### Answer by username_2 on 2015-06-05. Score: 3

You can get entries by an author like this:
{% set authorPosts = craft.entries.section('posts').authorId(entry.authorId) %}

I think this returns an ElementCriteriaModel so you could do things like .first() .limit(1) etc but you can use it in a twig loop as is.


---

