Title: Filter by month
Last modified: August 24, 2016

---

# Filter by month

 *  Resolved [bengirardet](https://wordpress.org/support/users/bengirardet/)
 * (@bengirardet)
 * [11 years ago](https://wordpress.org/support/topic/filter-by-month/)
 * How can we use the shortcode to display a list of event from a particular month?
 * Exemple of what I think would be great:
 * `[ecs-list-events year="2014" month="12"]`
 * `[ecs-list-events month="current"]`
 * [https://wordpress.org/plugins/the-events-calendar-shortcode/](https://wordpress.org/plugins/the-events-calendar-shortcode/)

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

 *  [joinfof](https://wordpress.org/support/users/joinfof/)
 * (@joinfof)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/filter-by-month/#post-6119887)
 * I’m not great at PHP but really need this function as well. I’m currently trying
   to add it. Does anyone want to get this functionality going? I’m willing to help
   where I can.
 *  [joinfof](https://wordpress.org/support/users/joinfof/)
 * (@joinfof)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/filter-by-month/#post-6119896)
 * [http://pastebin.com/0Tq9aQh9](http://pastebin.com/0Tq9aQh9)
 *  [joinfof](https://wordpress.org/support/users/joinfof/)
 * (@joinfof)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/filter-by-month/#post-6119897)
 * Sorry, use this link – [http://pastebin.com/wLgGL8tB](http://pastebin.com/wLgGL8tB)
 *  [Ruth Maude](https://wordpress.org/support/users/dandelionweb/)
 * (@dandelionweb)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/filter-by-month/#post-6119945)
 * This has been added to the latest version of the plugin. Update and use month
   =’2015-06′ in the shortcode.
 * Thanks to joinfof for the code. 🙂
 *  [txie](https://wordpress.org/support/users/txie/)
 * (@txie)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/filter-by-month/#post-6119946)
 * Thanks joinfof! it works.
    I´m trying to target current month. Need some help.
   <?php echo do_shortcode( “[ecs-list-events thumb=’true’ thumbwidth=’150′ thumbheight
   =’150′ order=’DESC’ month=’echo date(‘Y-m’)’]” ?>
 * Thanks in advance!
 *  [txie](https://wordpress.org/support/users/txie/)
 * (@txie)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/filter-by-month/#post-6119948)
 * found a solution.
    in the-events-calendar-shortcode.php in line: ‘month’ => ”,
   replace it with: ‘month’ => $curr_month,
 * then before extract( shortcode_atts( array( add: $curr_month = date(‘Y-m’);

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

The topic ‘Filter by month’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar-shortcode/assets/icon-256x256.gif?rev
   =3023752)
 * [The Events Calendar Shortcode & Block](https://wordpress.org/plugins/the-events-calendar-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar-shortcode/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [txie](https://wordpress.org/support/users/txie/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/filter-by-month/#post-6119948)
 * Status: resolved