Title: Quick Shortcode Questions
Last modified: August 20, 2016

---

# Quick Shortcode Questions

 *  Resolved [briegger](https://wordpress.org/support/users/briegger/)
 * (@briegger)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/quick-shortcode-questions/)
 * I’m trying to use the shortcodes to create a list of previous engagements. I’ve
   got all of the engagements (events) entered in. This is the code:
 * [events_list category=”Medicare” year=”2012″ order=DESC]
 * It is not getting the category part correct. I’d also like it to be just previous
   events and not limited to just last year. Any advice?
 * [http://www.medicareinsuranceprofessionals.com/previous-events/](http://www.medicareinsuranceprofessionals.com/previous-events/)
 * Thanks!
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/quick-shortcode-questions/#post-3435381)
 * Hi,
 * the problem is that your category search attribute is the category name and not
   the category ID -> `[events_list category="x" year="2012" order="DESC"]` where
   x is the events category id; category ID is located at Events > Event Categories(
   if ID is not displayed try to click Screen Option > enable ID then click apply)
 * [http://wp-events-plugin.com/documentation/](http://wp-events-plugin.com/documentation/)
   
   [http://wp-events-plugin.com/documentation/event-search-attributes/](http://wp-events-plugin.com/documentation/event-search-attributes/)
 *  Thread Starter [briegger](https://wordpress.org/support/users/briegger/)
 * (@briegger)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/quick-shortcode-questions/#post-3435532)
 * That was it!! Thank you so much!!
 * So, 2nd half of that question, is it possible to do some sort of short code that
   just calls up all previous events instead of using (year=”2012″) so it would 
   just keep calling up the previous events as the years roll on?
 * Thanks again!!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Quick Shortcode Questions’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [briegger](https://wordpress.org/support/users/briegger/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/quick-shortcode-questions/#post-3435532)
 * Status: resolved