Home › Forums › Calendar Products › Events Calendar PRO › How to show all events on one page ?
- This topic has 6 replies, 2 voices, and was last updated 10 years, 5 months ago by
Nico.
-
AuthorPosts
-
November 15, 2015 at 6:47 am #1026035
Adage
ParticipantHello,
I would like to understand how I should do in order to show all my events into a page (via a shortcode for example ?)
I understood how to show them into a calendar, but not how to show them into a list or some other type of disposition…
Thank you.November 16, 2015 at 10:47 am #1026524Nico
MemberHey Adage,
Thanks for reaching out to us! I’ll help you on this one…
You can use the PRO widget shortcodes to display them in a list (Advanced list widget). Other option is to craft a custom WP_QUERY to fetch the events, but that would require a bit of coding on your side.
Please let me know if the widget shortcodes work for you,
Best,
NicoNovember 17, 2015 at 12:08 am #1026723Adage
ParticipantHello and thank you,
The shortcode [tribe_events_list venue=”yes”] really helps me.
Nevertheless, I would like it to show also the featured image of the event.
If possible, I would also like to loads the events on three columns.
Last, I need to show all events, including past ones.
Thank you.November 17, 2015 at 4:00 pm #1027208Nico
MemberHey Adage,
Glad to hear this helped you out getting started at list!
Nevertheless, I would like it to show also the featured image of the event.
Hope fully this article will help with this: Add thumbnails to upcoming events list widget.
If possible, I would also like to loads the events on three columns.
The article above points you to our Themer’s guide, and gives you a code sample of the override to add the image. In the same way you can edit the template to show this in three columns, by altering the mark-up to achieve this.
Last, I need to show all events, including past ones.
In this case I can point you in the right direction but you might have to fine tune the code to fit your particular needs. The snippet below shows how to alter the query arguments for the widget:
add_filter ('tribe_events_list_widget_query_args', 'modify_widget_query' );function modify_widget_query ( $query ) {
//var_dump($query);
$query['eventDisplay'] = 'custom';
$query['posts_per_page'] = -1;return $query;
}
Please let me know if there’s anything else I can help you with,
Best,
NicoNovember 17, 2015 at 8:15 pm #1027270Adage
ParticipantThank you very much for your help.
November 17, 2015 at 8:16 pm #1027271Adage
ParticipantMy issue is resolved
November 18, 2015 at 2:42 pm #1027747Nico
MemberHi Adage,
Thanks for the heads up, and glad to hear this is solved 🙂
I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.
Best,
Nico -
AuthorPosts
- The topic ‘How to show all events on one page ?’ is closed to new replies.
