Answers.Body: <p>Christian is correct.  You can do this using the "Custom" tab of the CiviEvent Widget.  Use a JSON code in the "Custom API filter" field like this:</p>
  
  <p>{"event_type_id": 7}</p>
  
  <p>Where "7" is the id of the event type you want.</p>
  
  <p>You can even use a range of type ids like this:</p>
  
  <p>{"event_type_id": {">=": 7}}</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-19T11:36:11.290Z
Answers.LastActivityDate: 2017-12-19T11:36:11.290Z
Answers.UserDisplayName: partgoat
Answers.Body: <p>The shortcode you refer to is provided by the <a href="https://wordpress.org/plugins/civievent-widget/" rel="nofollow noreferrer">CiviEvent Widget</a> plugin. It has a number of configuration options which you can read about on the plugin homepage. I would look at the <code>custom_filter</code> options to see if you can make it fit your requirements.</p>
  
  <p>If the widget doesn't allow filtering by event category, I'd consider a more complex (but also more flexible) system based on <a href="https://wordpress.org/plugins/event-organiser/" rel="nofollow noreferrer">Event Organiser</a> and <a href="https://github.com/christianwach/civicrm-event-organiser" rel="nofollow noreferrer">CiviCRM Event Organiser</a> which will definitely do what you're after. </p>
  
  <p>Have a look at the <a href="http://spirit-of-football.de/kalender/" rel="nofollow noreferrer">standard calendar</a>, an <a href="http://spirit-of-football.de/events/kategorien/schulische-angebote/" rel="nofollow noreferrer">event category</a> and the <a href="http://spirit-of-football.de/events/orte/kunstrasen-am-nordpark/" rel="nofollow noreferrer">list of events at a venue</a> for the kind of things that are available out of the box.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-13T10:18:21.000Z
Answers.LastActivityDate: 2017-07-13T10:18:21.000Z
Answers.UserDisplayName: Christian Wach
Body: <p>I understand there is a shortcode for displaying a list of upcoming events, that is</p>
  
  <p>[civievent_widget]</p>
  
  <p>Is there a way to display categories of events as shown below? </p>
  
  <p><a href="http://www.torontodance.com/events/categories/salsa/" rel="nofollow noreferrer">http://www.torontodance.com/events/categories/salsa/</a></p>
  
  <p>Also are there ways to filter events by location and other filters?   If so, how? </p>
  
  <p>Thank you!</p>
  
Tags: <wordpress><civievent>
Title: Wordpress Shortcodes for Displaying subsets of events
ThreadText: # Wordpress Shortcodes for Displaying subsets of events
  
  (Asked by: username_0 on 2017-07-13)
  
  I understand there is a shortcode for displaying a list of upcoming events, that is
  
  [civievent\_widget]
  
  Is there a way to display categories of events as shown below?
  
  <http://www.torontodance.com/events/categories/salsa/>
  
  Also are there ways to filter events by location and other filters? If so, how?
  
  Thank you!
  
  **Tags:** wordpress, civievent
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-12-19. Score: 2
  
  username_2 is correct. You can do this using the "Custom" tab of the CiviEvent Widget. Use a JSON code in the "Custom API filter" field like this:
  
  {"event\_type\_id": 7}
  
  Where "7" is the id of the event type you want.
  
  You can even use a range of type ids like this:
  
  {"event\_type\_id": {">=": 7}}
  
  
  ---
  
  ### Answer by username_2 on 2017-07-13. Score: 2
  
  The shortcode you refer to is provided by the [CiviEvent Widget](https://wordpress.org/plugins/civievent-widget/) plugin. It has a number of configuration options which you can read about on the plugin homepage. I would look at the `custom_filter` options to see if you can make it fit your requirements.
  
  If the widget doesn't allow filtering by event category, I'd consider a more complex (but also more flexible) system based on [Event Organiser](https://wordpress.org/plugins/event-organiser/) and [CiviCRM Event Organiser](https://github.com/username_2/civicrm-event-organiser) which will definitely do what you're after.
  
  Have a look at the [standard calendar](http://spirit-of-football.de/kalender/), an [event category](http://spirit-of-football.de/events/kategorien/schulische-angebote/) and the [list of events at a venue](http://spirit-of-football.de/events/orte/kunstrasen-am-nordpark/) for the kind of things that are available out of the box.
  
  
  ---
  
  