Home › Forums › Calendar Products › Events Calendar PRO › Shortcode to simply list events in a given week
- This topic has 5 replies, 2 voices, and was last updated 7 years, 10 months ago by
Jerry Windley-Daoust.
-
AuthorPosts
-
May 4, 2018 at 8:25 pm #1523335
Jerry Windley-Daoust
ParticipantI’m looking for a way to list the events in a given week. The “week” attribute in the [tribe_events] shortcode accomplishes this nicely, but with a big, ugly, extraneous hourly calendar underneath the daily events. The This Week widget is really more what I’m looking for, in terms of the look…but it only displays the current week.
Is there a simple workaround that I’m missing here?
May 7, 2018 at 3:05 pm #1524713Jennifer
KeymasterHi Jerry,
Thanks for reaching out!
First, I’m not 100% sure what you’re referring to by an “hourly calendar underneath the daily events” with the week view shortcode. Can you send me a screenshot (or preferably a link to a page where you’re using this shortcode) so that I can take a look? You may be able to do a customization to change this.
Regarding the This Week widget, you are correct that it only displays the current week by default…are you trying to display events for the entire month? If you can provide a few more details on how you would like it to display, I’ll be happy to try to offer some other suggestions 🙂
Thanks,
Jennifer
May 8, 2018 at 6:40 am #1525165Jerry Windley-Daoust
ParticipantJennifer, hi. Sorry for the delayed response.
See the attached image…I can display the events for the week of May 13 just fine, but as you can see, I only have all-day “events”…so the big space underneath all day for the times of each event is unnecessary and I’d like to get rid of it.
An alternative approach would be to use the list view, but doing so pulls in the description and image as well.
So, in summary: I want to display a simple list of all of the events in a given week, either horizontally (week view) or vertically (list view)…but only with the date and the name of the event, linked to the full description.
May 9, 2018 at 11:51 pm #1526910Jennifer
KeymasterThanks for clarifying! For the week view, you could hide the hours section with CSS (see this post for some example CSS that you could use as a starting point), or you could also do a template override to remove that section. Our themer’s guide has instructions on doing template overrides, and the templates for week view can be found at wp-content/plugins/events-calendar-pro/src/views/pro/week.
If you would prefer to modify the list view to remove the elements that you don’t want, you can do a template override to accomplish this as well. The templates for list view are at wp-content/plugins/the-events-calendar/src/views/list.
We are limited in the amount of support that we can provide for customizations, but if you get stuck or have any questions, please let me know – I’ll be happy to point you in the right direction!
May 14, 2018 at 7:10 pm #1530276Jerry Windley-Daoust
ParticipantThanks, Jennifer!
May 15, 2018 at 4:36 am #1530511Jennifer
KeymasterNo problem, just let me know if there is anything else that I can help with!
June 6, 2018 at 9:35 am #1547545Support Droid
KeymasterHey 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 ‘Shortcode to simply list events in a given week’ is closed to new replies.
