Title: interval_count does not work in short code
Last modified: August 22, 2016

---

# interval_count does not work in short code

 *  Resolved [danielwiener](https://wordpress.org/support/users/danielwiener/)
 * (@danielwiener)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/interval_count-does-not-work-in-short-code/)
 * Hello,
    I am using the following code: `<?php echo do_shortcode('[gcal id="123"
   interval="events" interval_count="3" display="list" paging="false"]'); ?>` Everything
   is working except the frontend displays 5 events instead of 3. I have tried this
   using offset_interval_count=”1″ and then interval_count seems to work and 3 events
   are displayed. But I don’t want to display past events. You can see the feed 
   here – [http://academicaffairs.risd.edu/](http://academicaffairs.risd.edu/) Help
   would be much appreciated. Thanks.
 * [https://wordpress.org/plugins/google-calendar-events/](https://wordpress.org/plugins/google-calendar-events/)

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

 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/interval_count-does-not-work-in-short-code/#post-5866567)
 * This is actually a fix we are working on patching. For now you should be able
   to set the interval in your main feed settings and it should work properly.
 * Sorry about that!
 *  Thread Starter [danielwiener](https://wordpress.org/support/users/danielwiener/)
 * (@danielwiener)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/interval_count-does-not-work-in-short-code/#post-5866570)
 * I am glad you are working on it. This feed is displayed on another page where
   it requires 5 entries. So I made another gce page using the same calendar feed
   but set it to display 3 events. It worked. Thanks

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

The topic ‘interval_count does not work in short code’ is closed to new replies.

 * ![](https://ps.w.org/google-calendar-events/assets/icon-256x256.png?rev=1263960)
 * [Simple Calendar - Google Calendar Plugin](https://wordpress.org/plugins/google-calendar-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-events/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-events/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [danielwiener](https://wordpress.org/support/users/danielwiener/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/interval_count-does-not-work-in-short-code/#post-5866570)
 * Status: resolved