Home › Forums › Calendar Products › Events Calendar PRO › Custom Fields in Events List Widget
- This topic has 5 replies, 2 voices, and was last updated 9 years, 10 months ago by Casey.
-
AuthorPosts
-
May 26, 2014 at 5:59 am #177175gotmuckParticipant
Hey there – how would I get the Custom Field I created in the “Additional Fields” section of the PlugIn Settings page to appear as option for display in the Events List Widget?
Thanks!May 26, 2014 at 7:14 am #177488CaseyParticipantgotmuck,
Thanks for getting in touch! First of all, you’ll need to perform a template override on ‘views/pro/widgets/list-widget.php’. If you’re unsure of how to do this, check out our themer’s guide.Once you’ve overridden that file, you should be able to display your custom field by using the ‘tribe_get_custom_field‘ function like this:
<?php echo tribe_get_custom_field( 'Your Custom Field Label' ); ?>
Give that a try and let me know if it gets you started in the right direction. Thanks! 🙂
-Casey-
June 4, 2014 at 12:20 am #203033gotmuckParticipantHey Casey,
Sorry for the delay in response. I’ve created the override but a not sure where to add the function in the php file. I placed it in its own div below the vcard info. This, however, does not seem to work though…
Thanks, Herg
June 4, 2014 at 5:39 am #203540CaseyParticipantHerg,
You’ll just want to place that code somewhere in between the <li> tags, where ever you want the custom field value to display. Thanks! 🙂-Casey-
June 4, 2014 at 10:45 pm #205508gotmuckParticipantHi Casey,
Cool, I did it right just didn’t place the override in the correct subdirectory! Thanks!
June 5, 2014 at 6:34 am #206303CaseyParticipantAwesome! Thanks for confirming that this got you sorted. Since it looks like you’re all set, I’m going to mark this thread “Answered” and close it out.
By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://m.tri.be/jw
Thanks in advance. 🙂
Cheers,
Casey -
AuthorPosts
- The topic ‘Custom Fields in Events List Widget’ is closed to new replies.