Title: Shortcode demo setup
Last modified: August 31, 2016

---

# Shortcode demo setup

 *  Resolved [runamuk0](https://wordpress.org/support/users/runamuk0msncom/)
 * (@runamuk0msncom)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-demo-setup/)
 * I want to setup my media to display year and month groups. The demo shortcode
   seems to be what I’m looking to implement.
 * `[gallery media_category="5" category="2" limit="10" monthnum="12" year="2015"
   orderby="title" order="DESC"]`
 * How do I setup the taxonomy to support this shortcode?
 * [https://wordpress.org/plugins/enhanced-media-library/](https://wordpress.org/plugins/enhanced-media-library/)

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

 *  Plugin Author [webbistro](https://wordpress.org/support/users/webbistro/)
 * (@webbistro)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-demo-setup/#post-6955071)
 * Hello @runamuk0,
 * You should not setup a taxonomy in case you need just years and months. Just 
   use:
 * `[gallery monthnum="12" year="2015"]`
 * The shortcode works when the feature is activated on `Media Settings > Taxonomies
   > Options > Gallery > Enhanced Gallery`.
 * Best,
    -Nadia
 *  Thread Starter [runamuk0](https://wordpress.org/support/users/runamuk0msncom/)
 * (@runamuk0msncom)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-demo-setup/#post-6955081)
 * So where does it get the year and month? Is it the upload date or something else?
   I need it to be my data because I have older media that I am adding now.
 *  Plugin Author [webbistro](https://wordpress.org/support/users/webbistro/)
 * (@webbistro)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-demo-setup/#post-6955134)
 * Yes, it’s the upload date. It is based on WP media library default filters. In
   case you need a different classification you can create two – `photo_year` and`
   photo_month` – or one – `photo_date` – taxonomies, for example. Then your shortcode
   should look like this:
 * `[gallery photo_year=%term_id% photo_month=%term_id%]`
 * At the moment EML doesn’t understand slugs and names of terms, but I guess, we
   add the support for those in some of upcoming releases.
 * Best,
    -Nadia
 *  Thread Starter [runamuk0](https://wordpress.org/support/users/runamuk0msncom/)
 * (@runamuk0msncom)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-demo-setup/#post-6955186)
 * How does the category setup work? Is it hierarchical like:
 * photo_year
    2008 2009 2010 2011
 * photo_month
    1 2 3 …
 *  Plugin Author [webbistro](https://wordpress.org/support/users/webbistro/)
 * (@webbistro)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-demo-setup/#post-6955231)
 * Yes, like this. You can use any text for month and years, for example:
 * Dates:
    January 2016 February 2016 …
 * Months:
    Jan Feb …
 * Any view you need. But you can use these terms with their IDs, not their slugs
   right now. So, if:
 * Months:
    Jan (slug: jan, ID: 5) Feb (slug: feb, ID: 7) …
 * The you should use ID in shortcode:
 * `[gallery photo_month="5"]`
 * for images from January. Not much intuitive, though :). We will add slugs support
   definitely in one of the future releases.
 * Best,
    -Nadia

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

The topic ‘Shortcode demo setup’ is closed to new replies.

 * ![](https://ps.w.org/enhanced-media-library/assets/icon-256x256.png?rev=980107)
 * [Enhanced Media Library](https://wordpress.org/plugins/enhanced-media-library/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enhanced-media-library/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enhanced-media-library/)
 * [Active Topics](https://wordpress.org/support/plugin/enhanced-media-library/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enhanced-media-library/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enhanced-media-library/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [webbistro](https://wordpress.org/support/users/webbistro/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-demo-setup/#post-6955231)
 * Status: resolved