Advanced List Widget customization with additional fields

Home Forums Calendar Products Events Calendar PRO Advanced List Widget customization with additional fields

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1144401
    John
    Participant

    I have created an additional field for events labeled “Sponsored By”. It appears quite nicely in the meta box for the individual events that actually have a sponsor.

    Now the client wants that sponsor information to appear in the list view of events. I have used the [tribe_events_list] short code in a page, along with the category=”concerts-in-the-park”. I see where there are optional details that can be added in the short code, but I have not figured out how to get that additional field I created to appear in the the [tribe_events_list].

    Any help?

    #1144605
    Cliff
    Member

    Hi John. Thanks for your detailed question.

    As an overview:

    1. The shortcode comes from this file: /wp-content/plugins/events-calendar-pro/src/Tribe/Shortcodes/Events_List.php
    2. which actually just takes your shortcode arguments and runs it through /wp-content/plugins/events-calendar-pro/src/Tribe/Advanced_List_Widget.php
    3. which eventually just runs the Events List widget: /wp-content/plugins/events-calendar-pro/src/views/pro/widgets/list-widget.php

    I hope that adds some general context for your understanding of our shortcodes and widgets.

    You can customize the file in #3, above, at [your-child-theme]/tribe-events/pro/widgets/list-widget.php by following our Themer’s Guide.

    For example, you could customize that file to output data for the additional field(s) you want to display.

    I hope this helps. Please let me know if you have any follow-up questions.

    #1145245
    John
    Participant

    Thanks Cliff.

    Me and PHP, that should be an adventure!

    Embarrassing, but anyone have a copy/paste solution?

    #1145354
    Cliff
    Member

    Sorry, I don’t, but tribe_get_custom_fields() or tribe_get_option( ‘custom-fields’ ) might come in handy.

    If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.

    #1153700
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Advanced List Widget customization with additional fields’ is closed to new replies.