Add Calendar to Page

Home Forums Calendar Products Events Calendar PRO Add Calendar to Page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #942003
    Benjamin
    Participant

    Hey guys,

    There are many forum posts about this topic, but I can’t find a viable answer. Events Rocket is no longer supported and never really did add the full calendar to a page. The Themer’s Guide doesn’t make sense to me beyond making small content changes. Can we start a conversation to get this solved? It’s obviously a very common request.

    Since no shortcodes currently exist to do this, there are two obvious approaches left:

    1. Edit all relevant plug-in files to call the page content which we want to display beneath/above the calendar.

    2. Create a page template that calls the Events Calendar above/below the page content and apply it to the page in question.

    Which of these is more do-able and/or sustainable?

    The second option seems easier and more user friendly to me, but that may be because I find the Themer’s Guide so confusing. I’m still doing research.

    Thanks to anyone who contributes!

    #942129
    Barry
    Member

    Hi Benjamin,

    We’re investigating ways of making this easier. For the time being, though, you’re right that this would require some amount of customization work.

    I definitely wouldn’t recommend modifying core plugin files, but what you want ought to be achievable even so. What I can say is that, regrettably, it is sufficiently complicated to be beyond the scope of assistance that we can provide here on this forum.

    #942205
    Benjamin
    Participant

    Well it took me 4 hours, but I got it working!

    I created the “child theme” file as the Themer’s Guider stipulated in the following location:

    wp-content/themes/your-theme/tribe-events/default-template.php

    And then I edited the default-template.php file adding this (with some extra rules specific to my site) beneath the calendar’s code:

    <?php query_posts(‘pagename=home’); ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php endwhile; else : ?>
    <?php _e( ‘Sorry, no posts matched your criteria.’ ); ?>
    <?php endif; ?>

    Note (for anyone else trying to do this): My page was called ‘home’ – this needs to be changed to your respective page name.

    Also, for some reason I had to reset the query just before the footer or it did not display. I put this code just before the get footer:

    <?php wp_reset_query(); ?>

    This solution places a single page’s content above/below the Events Calendar. The ideal solution would add the calendar to a page (so you could have the calendar on multiple pages), but for my purposes on this site having the page in the calendar (so to speak) worked fine.

    Barry,

    While you’re investigating options, a better Themer’s Guide would have been super helpful. I felt like I spent a lot of time just figuring out what files did what. But admittedly I’m a php hack.

    All the best,

    Ben

    #942274
    Barry
    Member

    Hi Ben,

    Thanks first of all for sharing your solution – and glad you figured something out here 🙂

    While you’re investigating options, a better Themer’s Guide would have been super helpful. I felt like I spent a lot of time just figuring out what files did what. But admittedly I’m a php hack.

    We’re definitely interested in ways that we might improve this (and of course our other resources, such as the knowledgebase).

    Can I ask if you have any more specific feedback here? Was it simply lacking the detail you needed in some areas?

    #942868
    Benjamin
    Participant

    A couple more example customizations of varying types would help immensely. Right now the example customization is how to add the event organizer to the events calendar, so that covers how to add/display an existing field.

    But one can easily imagine a couple common customizations which would be quite different:

    1. Adding a calendar to a page

    2. Changing the name of a field

    I think adding these examples would really help the guide. Again, PHP is not my strong suit, but I imagine you have plenty of customers like me who are well versed in html/css and willing to tackle a “theme,” but could use some additional guidance here.

    Thank you for your follow up!

    All the best,

    Ben

    #942888
    Barry
    Member

    Definitely – and we appreciate you taking the time to give us this feedback (which I’ll be sure to relay).

    Thanks again 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add Calendar to Page’ is closed to new replies.