Trying to list entries related to users with a specific category selected This is a category page. I am trying to display all entries from users with this specific category selected in their account (user field that is a category field type.) This is the code I have so far, but it is not returning results. No errors - just not returning anything unfortunately:

&lt;h1&gt;{{ category.title }}&lt;/h1&gt;

{# Grab all the users who have this category selected (which is a 'category field type' user field) #}
{% set categoryUsers = craft.users.relatedTo(category).limit(null) %}

{# Grab all of the entries by those users #}    
{% set categoryUserEntries = craft.entries.section('jobs').relatedTo(categoryUsers).limit(null) %}

{% paginate categoryUserEntries.limit(8) as entries %}

     {% for entry in entries %} 
         &lt;h1&gt;&lt;a href="{{ entry.url }}"&gt;{{ entry.title }}&lt;/a&gt;&lt;/h1&gt;
     {% endfor %}

     {% if paginate.prevUrl %}&lt;a href="{{ paginate.prevUrl }}" class="pagination left"&gt;&amp;laquo; Previous Page&lt;/a&gt;{% endif %}
     {% if paginate.nextUrl %}&lt;a href="{{ paginate.nextUrl }}" class="pagination right"&gt;Next Page &amp;raquo;&lt;/a&gt;{% endif %}

{% endpaginate %}


Thanks in advance!
I think I worked this out. It looks like the related entries need to be contained in the user loop. This is what I used to make this work:

{% set categoryUsers = craft.users.relatedTo(category) %}
    {% paginate categoryUsers.limit(1) as entries %}

        {% for categoryUser in entries %}
            {{ categoryUser.username }}

            {% set categoryEntry = craft.entries.section('jobs').authorId(categoryUser.id).first() %}       
                {% if categoryEntry %}
                    {{ categoryEntry.positionTitle }} (And other fields not added yet.)
                {% endif %}

             &lt;p&gt;Testing the total found: {{ categoryUsers|length }}&lt;/p&gt;
        {% endfor %}

    {% if paginate.prevUrl %}&lt;a href="{{ paginate.prevUrl }}" class="pagination left"&gt;&amp;laquo; Previous Page&lt;/a&gt;{% endif %}
    {% if paginate.nextUrl %}&lt;a href="{{ paginate.nextUrl }}" class="pagination right"&gt;Next Page &amp;raquo;&lt;/a&gt;{% endif %}

    {% endpaginate %}


Still testing, but I think this is the solution. (Unless someone else has a better way of doing this. :))