Answers.Body: <p>I can't think of an existing way to "auto-thing" this, unfortunately. I think you may need to contract a <a href="https://civicrm.org/partners-contributors" rel="nofollow noreferrer">CiviCRM partner</a> to develop some custom code for you, or perhaps reach out to the maintainer of the CiviEvent Widget and see if they're willing to take feature requests. (I suspect they'll want to be compensated for that.)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-30T20:52:55.497Z
Answers.LastActivityDate: 2017-05-30T20:52:55.497Z
Answers.UserDisplayName: universalhandle
Body: <p>I am on Wordpress 4.7.5 and CiviCRM 4.7.19. I have tried the CiviEvent Widget but it does not do enough for me. I have tried modifying it but my skills are too beginner.</p>
  
  <p>I would like to display my events by event type on a wordpress page. Then for each event type, I would like to have a past events page where the past events for 2017, 2016 and 2015 are displayed.</p>
  
  <p>Illustration:</p>
  
  <p><strong>Events page</strong><br>
  Event Type 1<br>
  - event<br>
  - event<br>
  - past events page link<br>
  Event Type 2<br>
  - event<br>
  - event<br>
  - past events page link<br>
  Event Type 3<br>
  - event<br>
  - event<br>
  - past events page link<br></p>
  
  <p><strong>Past Events page for Event type 1</strong><br>
  2017<br>
  - event<br>
  - event<br>
  2016<br>
  - event<br>
  - event<br>
  2015<br>
  - event<br>
  - event</p>
  
  <p>What I have tried as an alternative: Created event types as post categories, then created years as sub-categories. Then inserted civicrm event as a post under the relevant sub-category. Then I intended to create page templates that display the posts under certain categories. However, I realised that I am unable to filter out the on-going events and past events. In addition, this means that I need to modify the page templates each year to get the id for the new categories. Example, for 2018, I will have to create 3 2018 sub-categories under each event type. I would prefer it to be an auto-thing.</p>
  
Tags: <wordpress>
Title: Display events by categories for current year, and past 3 years
ThreadText: # Display events by categories for current year, and past 3 years
  
  (Asked by: username_0 on 2017-05-24)
  
  I am on Wordpress 4.7.5 and CiviCRM 4.7.19. I have tried the CiviEvent Widget but it does not do enough for me. I have tried modifying it but my skills are too beginner.
  
  I would like to display my events by event type on a wordpress page. Then for each event type, I would like to have a past events page where the past events for 2017, 2016 and 2015 are displayed.
  
  Illustration:
  
  **Events page**  
  Event Type 1  
  - event  
  - event  
  - past events page link  
  Event Type 2  
  - event  
  - event  
  - past events page link  
  Event Type 3  
  - event  
  - event  
  - past events page link
  
  **Past Events page for Event type 1**  
  2017  
  - event  
  - event  
  2016  
  - event  
  - event  
  2015  
  - event  
  - event
  
  What I have tried as an alternative: Created event types as post categories, then created years as sub-categories. Then inserted civicrm event as a post under the relevant sub-category. Then I intended to create page templates that display the posts under certain categories. However, I realised that I am unable to filter out the on-going events and past events. In addition, this means that I need to modify the page templates each year to get the id for the new categories. Example, for 2018, I will have to create 3 2018 sub-categories under each event type. I would prefer it to be an auto-thing.
  
  **Tags:** wordpress
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-05-30. Score: 1
  
  I can't think of an existing way to "auto-thing" this, unfortunately. I think you may need to contract a [CiviCRM partner](https://civicrm.org/partners-contributors) to develop some custom code for you, or perhaps reach out to the maintainer of the CiviEvent Widget and see if they're willing to take feature requests. (I suspect they'll want to be compensated for that.)
  
  
  ---
  
  