Add Specific Additinal fields to template.

Home Forums Calendar Products Events Calendar PRO Add Specific Additinal fields to template.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #56777
    Schalk Joubert
    Participant

    Hi,

    What would the code be to add an additional field, with label name: “Presenter” to the list template, or can additional fields only be grouped in under the OTHER section in the single view.

    Regards

    #56876
    Schalk Joubert
    Participant

    This Screenshot might explain it better.
    So instead of a few additional fields in one group, I want to add a few to different areas, in both the events list view and the single event view.
    http://www.outoforder.co.za/dropbox/Events%20Calender%20Pro.jpg

    #56942
    Schalk Joubert
    Participant

    Related to my quetsion above, is there somewhere a list of all the meta.
    So if I wan to add start date, or end date, somewhere in my template, i can just look op the code?

    #57106
    Jonah
    Participant

    Hi Schalk Joubert,

    Please take a look at our themer’s guide which covers modifying things in the plugin: https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/ – also, check out our docs for specific function information: http://docs.tri.be/

    I hope that helps!

    – Jonah

    #57215
    Schalk Joubert
    Participant

    hi jonah,

    im fully aware of the url to guide and docs above. please read my thread properly. i was hoping for some support, as it stsnds now the pro version is of no added value to me.
    thanks
    schalk

    #57338
    Jonah
    Participant

    Hi Schalk Joubert,

    Sorry about that. As indicated in the Themer’s guide, there are various list templates in the /wp-content/plugins/the-events-calendar/views/list folder. If you want to add specific markup/code to each event, you would want to edit /wp-content/plugins/the-events-calendar/views/list/single-event.php by making a copy and placing in a ‘tribe-events’ folder in your theme. Then, if you wanted to add code for custom fields to display you could use the tribe_the_custom_fields() function somewhere in the single-event.php file (wherever you want it to display).

    Does that help?

    – Jonah

    #57347
    Schalk Joubert
    Participant

    Hi Jonah,

    Thanks for trying, but this doesn’t help me. I know how to work on the template file, and I have made some changes.

    I think this screenshot explains it exactly… http://www.outoforder.co.za/dropbox/Events%20Calender%20Pro.jpg

    The custom fields are grouped into one group. So one can have loads of custom fields, but still only one group.

    How do I go about having different groups?

    I want a custom fields called DJ to appear on the events list while I want a custom field AFTER PARTY appear in the single event template.

    Hope you can shed some light, thanks
    Schalk

    #57370
    Jonah
    Participant

    Hi Schalk,

    So in that case you just need to use tribe_get_custom_field() instead: http://docs.tri.be/Events-Calendar-PRO/function-tribe_get_custom_field.html – then you can control the output entirely for each individual field.

    I hope that helps,
    – Jonah

    #979984
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Add Specific Additinal fields to template.’ is closed to new replies.