Skip to content

Instantly share code, notes, and snippets.

@a-am
Last active January 15, 2016 22:45
Show Gist options
  • Save a-am/541737bc91b667b90078 to your computer and use it in GitHub Desktop.
Save a-am/541737bc91b667b90078 to your computer and use it in GitHub Desktop.
Retrieving events by category id.
{% events = craft.venti.allEvents().startDate('and', '>= ' ~ now).relatedTo({targetElement:category.id}).find() %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment