Home › Forums › Calendar Products › Events Calendar PRO › URL parameters to limit number of results
- This topic has 5 replies, 2 voices, and was last updated 6 years, 5 months ago by Colin Carmichael.
-
AuthorPosts
-
October 2, 2017 at 12:07 pm #1357911Colin CarmichaelParticipant
99% of the time, I want the default number of events displayed as set in my settings (currently 50). However, I would like to be able to control this with a URL parameter, if possible. In particular, I would like to send an end date parameter, so that I can show only events that fall between, for example, October 8 and October 14 (next week). Is this possible? (The first date is easy, of course using “tribe-bar-date=2017-10-08”)
October 3, 2017 at 3:47 pm #1358602CliffMemberHi, Colin.
If you’re wanting the date range to be a user-facing option in the Tribe Bar, please add your vote to this existing feature request: https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/4157351-date-range-picker
This allows us to gauge interest in this particular feature request, which helps us prioritize our development efforts.
Please let me know if this existing feature request does not match what you’re wanting and I might be able to point you in the right direction to get started with some custom coding.
October 4, 2017 at 10:26 am #1359104Colin CarmichaelParticipantThat suggestion is great and I’ve now voted for it. I was hoping, though, that there was an undocumented URL param for “end date” that I could use myself. What I’m trying to do is print (yes, on paper) just “This week’s events”.
October 4, 2017 at 8:54 pm #1359338CliffMemberOur PRO add-on enables the Week View (demo: http://wpshindig.com/events/week/)
Will that work for you?
And this snippet might be a start for you adding some printer-friendly styling:
https://gist.github.com/cliffordp/edec7dff1e2d92333682759d0b8de7de
Please let me know how things go for you.
October 26, 2017 at 9:36 am #1369382Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘URL parameters to limit number of results’ is closed to new replies.