Title: The `limitdays` Variable Doesn&#8217;t Work on Shortcode
Last modified: July 4, 2026

---

# The `limitdays` Variable Doesn’t Work on Shortcode

 *  [Mike Matenkosky](https://wordpress.org/support/users/hikinmike/)
 * (@hikinmike)
 * [6 days, 3 hours ago](https://wordpress.org/support/topic/the-limitdays-variable-doesnt-work-on-shortcode/)
 * We use the shortcode on our church’s site to display 3 days events. Not sure 
   when it stopped, but now the calendar field is empty. Removing it “works”, but
   displays a week.
 * I too ([https://wordpress.org/support/topic/issues-with-calendar-display-on-block-themes-using-the-shortcode-block/](https://wordpress.org/support/topic/issues-with-calendar-display-on-block-themes-using-the-shortcode-block/))
   tried to use your support form, but I got the same error.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fthe-limitdays-variable-doesnt-work-on-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Mike Matenkosky](https://wordpress.org/support/users/hikinmike/)
 * (@hikinmike)
 * [3 days, 18 hours ago](https://wordpress.org/support/topic/the-limitdays-variable-doesnt-work-on-shortcode/#post-18957217)
 * For now, we changed it from `view="week"` to `view="basic"` until this is fixed.
 *  Plugin Author [Scott Anderson](https://wordpress.org/support/users/room34alt/)
 * (@room34alt)
 * [3 days, 16 hours ago](https://wordpress.org/support/topic/the-limitdays-variable-doesnt-work-on-shortcode/#post-18957334)
 * I’m sorry to hear that the form didn’t work.
 * As for the `limitdays` setting, if you set that to 3 and there are no events 
   within the next 3 days, you won’t get any events.
 * I think you may want to use the `count` parameter instead to show a fixed number
   of events, rather than a fixed number of days.
 * It may help if I get the System Report so I can see if there are any issues I’m
   not accounting for here. Please try the support form again, but be sure not to
   include any code in the text you paste into the form (the system report itself
   should be fine), and don’t include any attachments. Thanks.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fthe-limitdays-variable-doesnt-work-on-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/ics-calendar/assets/icon.svg?rev=3427980)
 * [ICS Calendar](https://wordpress.org/plugins/ics-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ics-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ics-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/ics-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ics-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ics-calendar/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Scott Anderson](https://wordpress.org/support/users/room34alt/)
 * Last activity: [3 days, 16 hours ago](https://wordpress.org/support/topic/the-limitdays-variable-doesnt-work-on-shortcode/#post-18957334)
 * Status: not resolved