Title: Limit not working
Last modified: November 27, 2018

---

# Limit not working

 *  Resolved [determined1](https://wordpress.org/support/users/determined1/)
 * (@determined1)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/limit-not-working-5/)
 * Hi, this is my shortcode below and I only get 5 events showing even when I have
   over 20. How do I get the limits to work?
 * [events-calendar-templates template=”default” category=”event” date_format=”default”
   start_date=”” end_date=”” limit=”1″ order=”DESC” hide-venue=”no” time=”past” 
   title=”Past Events”]
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flimit-not-working-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [baljitdhanjal](https://wordpress.org/support/users/baljitdhanjal/)
 * (@baljitdhanjal)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/limit-not-working-5/#post-10919951)
 * Hi [@determined1](https://wordpress.org/support/users/determined1/),
 * First of all make sure you have added events more than 20 of same category that
   you have selected in shortcode (i.e. event).
    As you have selected **time=”past”**
   in shortcode, so only past events(whose end date has been passed) will be display
   in your event list.
 * You can limit the number of events to display by changing the value of **limit
   =”20″** in shortcode.
 * Thanks
 *  Thread Starter [determined1](https://wordpress.org/support/users/determined1/)
 * (@determined1)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/limit-not-working-5/#post-10922365)
 * Hello Baljitdhanjal,
 * I’ve done everything right and yet it still doesn’t work.
 *  Thread Starter [determined1](https://wordpress.org/support/users/determined1/)
 * (@determined1)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/limit-not-working-5/#post-10922554)
 * okay it works now. What I failed to do was to assign the other events a category.

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

The topic ‘Limit not working’ is closed to new replies.

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

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [determined1](https://wordpress.org/support/users/determined1/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/limit-not-working-5/#post-10922554)
 * Status: resolved