Author List, Only Users With Entry I am trying to show a list of users but only if they have created a post in a certain section... the code I am using isn't working as expected. Perhaps I have the syntax wrong when it comes to the user model

Help would be greatly appreciated.

{% set entries = craft.entries.section('news') %}
{% set authorList = craft.users.relatedTo(entries) %}

{% for author in authorList %}
&lt;h5&gt;&lt;a href="/news/author/{{author.username}}"&gt;{{author.fullName}}&lt;/a&gt;&lt;/h5&gt;
{% endfor %}
This should do it:

{# Grab all the entries for the section #}
{% set entries = craft.entries.section('news').find() %}

{# Group by the authorId #}
{% set entriesByAuthor = entries|group('authorId') %}

{# Grab all of the users with the userIds in entriesByAuthor #}
{% set authors = craft.users.id(entriesByAuthor|keys) %}

&lt;ul&gt;
    {% for author in authors %}
        &lt;li&gt;{{ author.username }}
    {%  endfor %}
&lt;/ul&gt;