Home › Forums › Calendar Products › Events Calendar PRO › Unable to display fields as required
- This topic has 3 replies, 2 voices, and was last updated 8 years, 6 months ago by
David Allan.
-
AuthorPosts
-
September 26, 2017 at 9:18 am #1354980
David Allan
ParticipantI cannot make sense of this plugin because I do not have coding skills.
I am using the Event Calendar pro, because I need additional fields, but they are never displayed!!
I have read the Themers Guide but do not understand what I need to do to get my events displayed properly.
The additional fields only appear when an event is expanded (and I dont ever want to do that).
My calendar is intended to display a list of events in different cities, at different venues, in a single day.
All I am able to display is
Event Title
Date @ Start Time
Venue
Find out more »What I want to display is:
Venue Organiser (because I am using Venue for Cities and Organiser for Venues)
Event Title “Additional Field 3”
Start Time End Time Cost “Additional Field 1” “Additional Field 2”And I dont want to display “Find out more »”
Is this possible with your plugin?
September 27, 2017 at 5:11 am #1355460Victor
MemberHi David!
Thanks for reaching out to us! Let me try to help you with this topic.
By default, the list view will not display the additional fields. So, if you want to display the additional fields in the list view, you will have to customize the single-event.php template file located at /wp-content/plugins/the-events-calendar/src/views/list/ by using one of the methods described in our themer’s guide > https://theeventscalendar.com/knowledgebase/themers-guide/
Please note that we are fairly limited in how much support we can give for custom development questions like that. But we always like helping out and at least point users into the right direction as much possible.
We also have a list of customizers we’d happily recommend for this type of customizations.
One approach to accomplish what you are looking for would be to make a template override of the above mentioned single-event.php file, which basically boils down to this:
- Make a copy of the single-event.php template. It is located at wp-content/plugins/the-events-calendar/src/views/list/single-event.php
- Make a new folder in your theme called tribe-events
- Make a new folder in that one called list
- Drop your copied single-event.php file in that last folder
Now that the template is in your theme, you can modify it to suit your needs. In this case, if you add the following code after line 92 it will show the organizer and venue for the event:
<?php if ( tribe_has_organizer() ) { echo 'Organizer: ' . tribe_get_organizer(); } if ( tribe_has_venue() ) { echo 'Venue: ' . tribe_get_venue(); } ?>I hope this helps as a starting point. Let me know if you have any questions.
Best,
VictorOctober 19, 2017 at 9:35 am #1365996Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Unable to display fields as required’ is closed to new replies.
