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 %}
<h5><a href="/news/author/{{author.username}}">{{author.fullName}}</a></h5>
{% endfor %}