Craft CMS - Select Categories related to user
{% set categories = craft.categories({ relatedTo: { sourceElement: currentUser, field: "preference" }, limit: null }) %} {% for x in categories %} <pre> {{x.title}} </pre> {% endfor %}