Home › Forums › Calendar Products › Events Calendar PRO › Advanced List Widget customization with additional fields
- This topic has 5 replies, 4 voices, and was last updated 9 years, 9 months ago by
John.
-
AuthorPosts
-
July 26, 2016 at 2:42 pm #1144401
John
ParticipantI 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?
July 27, 2016 at 7:43 am #1144605Cliff
MemberHi John. Thanks for your detailed question.
As an overview:
- The shortcode comes from this file: /wp-content/plugins/events-calendar-pro/src/Tribe/Shortcodes/Events_List.php
- which actually just takes your shortcode arguments and runs it through /wp-content/plugins/events-calendar-pro/src/Tribe/Advanced_List_Widget.php
- 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.
July 28, 2016 at 11:37 am #1145245John
ParticipantThanks Cliff.
Me and PHP, that should be an adventure!
Embarrassing, but anyone have a copy/paste solution?
July 28, 2016 at 4:00 pm #1145354Cliff
MemberSorry, 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.
August 19, 2016 at 9:35 am #1153700Support 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 ‘Advanced List Widget customization with additional fields’ is closed to new replies.
