Title: Events limit shortcode not working
Last modified: August 22, 2016

---

# Events limit shortcode not working

 *  Resolved [the7goonies](https://wordpress.org/support/users/the7goonies/)
 * (@the7goonies)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/events-limit-shortcode-not-working/)
 * The events_limit=”#” no longer works for shortcodes. This is crucial for a lot
   of people and a lot of sites…
 * [https://time.ly/forums/topic/events_limit-shortcode-not-working-in-2-1-8](https://time.ly/forums/topic/events_limit-shortcode-not-working-in-2-1-8)
 * [https://wordpress.org/plugins/all-in-one-event-calendar/](https://wordpress.org/plugins/all-in-one-event-calendar/)

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

 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/events-limit-shortcode-not-working/#post-5538544)
 * Please do not double post. If a thread is opened there you will be helped there
 *  Thread Starter [the7goonies](https://wordpress.org/support/users/the7goonies/)
 * (@the7goonies)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/events-limit-shortcode-not-working/#post-5538548)
 * I didn’t double post. I didn’t post that topic/thread. I was just supporting 
   that the fact it’s a known issue elsewhere on those forums. It would be nice 
   to see feedback on this issue that you guys are looking into it. Thanks!
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/events-limit-shortcode-not-working/#post-5538564)
 * Ok, please just post in that thread if you need help.
    Anyway this is a bug and
   it will go into 2.1.9. I’m just saying, please don’t post the same questions 
   twice, let’s try to keep everything in one place
 *  Thread Starter [the7goonies](https://wordpress.org/support/users/the7goonies/)
 * (@the7goonies)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/events-limit-shortcode-not-working/#post-5538567)
 * Got it thanks.
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/events-limit-shortcode-not-working/#post-5538583)
 * ok as posted in the other thread.
 * In file `app/view/calendar/shortcode.php` can you please make these changes?line
   123 [http://take.ms/h3V3t](http://take.ms/h3V3t)
 * in the end it should simply look
 *     ```
       $query = array(
       	'ai1ec_cat_ids'	 => implode( ',', $_events_categories ),
       	'ai1ec_tag_ids'	 => implode( ',', $_events_tags ),
       	'ai1ec_post_ids' => implode( ',', $post_ids ),
       	'action'         => $view,
       	'request_type'   => 'jsonp',
       	'events_limit'   => isset( $atts['events_limit'] )
       		? (int) $atts['events_limit']
       		: null,
       );
       ```
   
 *  Thread Starter [the7goonies](https://wordpress.org/support/users/the7goonies/)
 * (@the7goonies)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/events-limit-shortcode-not-working/#post-5538781)
 * Yes thanks!! 🙂

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

The topic ‘Events limit shortcode not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/all-in-one-event-calendar.svg)
 * [Timely All-in-One Events Calendar](https://wordpress.org/plugins/all-in-one-event-calendar/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-event-calendar/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [the7goonies](https://wordpress.org/support/users/the7goonies/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/events-limit-shortcode-not-working/#post-5538781)
 * Status: resolved