Forum Replies Created
-
AuthorPosts
-
PeterParticipant
OK – I’ve moved further down the line. I noted that the events page is controlled by the “Default Events Template”, and tried to locate that, since that should address my concerns noted above. I found /plugins/the-event-calendar/views/ecp-page-template.php, which appeared to be the answer to everything. I copied that, and used it as the template that is used to create my home page.
My home page then showed the title and the Event List / Calendar buttons, but not the month selectors or the calendar itself. Still, I feel like it’s a step forward.
One of its lines is: ?php include(tribe_get_current_template()); ?
and I’m now curious what defines the ‘current template’. I see from https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_current_template that this gets ‘the current page template that we’re on’ but I’m now wondering how it knows the current template — for instance, in this case does it *not* know the current template, and that’s why it’s failing to display in the same manner?
I tried replacing include(tribe_get_current_template()) with include(tribe_calendar_grid()) and got the calendar to show along with the title, but I lost the Events List / Calendar buttons, and I still don’t have the month selectors. In addition, I see some error messages on the page now.
Apologies for the verbosity. I still haven’t solved my problem, but I’m not as stumped as I was before. If anyone wants to chime in, I welcome feedback, but I also see some paths to take before begging for further assistance.
PeterParticipantSorry. Should have Previewed post before posting it. My bad. Above, I’m using tribe_calendar_grid(); in my template to add the calendar to the page in question.
PeterParticipantIf/when you can accommodate rss feeds *coming in* to ECP, you’d have this problem solved, by just locating an existing online rss feed of public holidays and subscribing to said feed.
-
AuthorPosts