Aetherdan Posted January 9, 2018 Share Posted January 9, 2018 How would I go about trying to display a custom field for a club in a template? Specifically on the club card. Link to comment Share on other sites More sharing options...
Aetherdan Posted January 9, 2018 Author Share Posted January 9, 2018 Sort of worked it out {{foreach $club->fieldValues() as $fields}} {$fields['field_1'] )} {{endforeach}} Link to comment Share on other sites More sharing options...
bfarber Posted January 9, 2018 Share Posted January 9, 2018 $club->fieldValues()['field_1'] Would be a better option. You don't need to loop over the values, and field_1 would be the key not the value. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.