I'm trying to show a list of entries related to the same category on a page that contains a single entry. I have two category separate category fields in the entry, both with one category each selected in them. The two category groups are named eventType and venue. The code below successfully shows a list of entry titles for one category group but not the other, and I can't seem to find out what's going wrong.
The code below works for the eventType category group (it shows all the entries related to eventType). But when I swap out eventType for venue, it returns my else statement.
I'm new to Craft (it's great!), so maybe I'm going about this all wrong, or missing something obvious.
{% for thisCategory in entry.eventType %}
<h1>Other Events in {{ thisCategory.title }}</h1>
{% set category = craft.categories.slug(thisCategory.title) %}
{% set entries = craft.entries.section('events').relatedTo(category).find() %}
{# If there are any entries, loop through them #}
{% if entries | length %}
{# For each entry we find, do this #}
{% for entry in entries %}
<p>{{ entry.title }}</p>
{% endfor %}
{% else %}
<p>Found no entries</p>
{% endif %}
{% endfor %}