Add custom fields to events list page

Home Forums Welcome! Pre-Sales Questions Add custom fields to events list page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #969488
    Stephane
    Participant

    Hello,

    Since Events calendar Pro offers the possibility to add custom fields for each event, I’m trying to figure out how to retrieve and display content of each custom field on my fully customized Event page ( list/single-event.php )

    As you can see here I’ve created 3 custom fields on my Events Preferences, they are displaying properly when I clic on the event itself, but I’m also looking to show them on the event list aswell

    Thanks.

    #969557
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help out here.

    To display the additional fields on the list view you are going to want to move and edit those templates in your theme.

    You can follow the themer’s guide:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    Note in 3.10 the view directory is in /src/views/ before that it is just in /views/

    And you can use this function to display the results of any additional field:

    https://gist.github.com/jesseeproductions/3ba8c5679e188946988e

    Change ‘Community Field’ to the name of the field you would like to display.

    Let me know if you have any follow up questions.

    Thanks

    #969738
    Brian
    Member

    Thanks for marking your question answered, I am going to close this topic, but if you would like more help related to this or with something else, please create a new topic. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Add custom fields to events list page’ is closed to new replies.