Display two views on one page

Home Forums Calendar Products Community Events Display two views on one page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #965577
    Barbara
    Participant

    Hi,
    there is the possibility to display a month view and a list view on the same page?

    Thanks, Carlo

    #965628
    Brian
    Member

    Hi 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:

    Event Rocket

    Let me know if you have any follow up questions.

    Thanks

    #965671
    Barbara
    Participant

    Hi 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

    #965853
    Brian
    Member

    Hi,

    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:

    Using 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.

    #965946
    Barbara
    Participant

    Hi Brian,
    thanks for the assistance!

    regards, Carlo

    #965962
    Brian
    Member

    Your 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Display two views on one page’ is closed to new replies.