Home › Forums › Calendar Products › Community Events › Display two views on one page
- This topic has 5 replies, 2 voices, and was last updated 10 years, 11 months ago by
Brian.
-
AuthorPosts
-
May 28, 2015 at 3:24 am #965577
Barbara
ParticipantHi,
there is the possibility to display a month view and a list view on the same page?Thanks, Carlo
May 28, 2015 at 6:59 am #965628Brian
MemberHi Carlo,
Thanks for using the Events Calendar.
There is no feature to display two views on one page.
You maybe to follow our themer’s guide:
https://theeventscalendar.com/knowledgebase/themers-guide/
To make this customization, but we are limited in helping much more beyond that.
One idea is to modify the month view and use a shortcode from the Event Rocket Plugin an unofficial plugin maintained by some of our developers that has shortcodes in it to display a list view:
Let me know if you have any follow up questions.
Thanks
May 28, 2015 at 8:41 am #965671Barbara
ParticipantHi Brian,
thanks for the information on the Event Rocket plugin, I’ll trying to resolve my problem.I have another question:
If I use the events calendar list template (on the same page of month view) why is showing the oldest event instead the upcoming?Maybe there is a problem with the the have_posts() that are already consumed by the month view? In this case, how can I reset the queries to recall the other view?
I tried to force the call:
<?php tribe_get_template_part( 'list/content' ); ?>
after the month/content
or using event rocket with calling the same template:
<?php echo do_shortcode("[event_embed from='now' limit=5 template='list/content']"); ?>Best regards, Carlo
May 28, 2015 at 1:13 pm #965853Brian
MemberHi,
Since each event view has a unique query I would assume dropping in another view template that requires a main query would not work.
I would look into creating a custom query with tribe_get_events:
Not sure that will enable you to use the existing templates and you might have to create your own template to display the events.
You are in uncharted territory with this customization and there is not much we can provide on this unfortunately.
May 29, 2015 at 2:49 am #965946Barbara
ParticipantHi Brian,
thanks for the assistance!regards, Carlo
May 29, 2015 at 5:11 am #965962Brian
MemberYour Welcome.
I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.
Thanks
-
AuthorPosts
- The topic ‘Display two views on one page’ is closed to new replies.
