Return format
-
Hi, trying to find th ebest/easiest way to return FA icon for my requirements. Alongside my icon field I have a field for icon colour so I need to be able to add the_sub_field(‘icon_colour’) inside the <i>
When I was on v4 I used the class but this wont work for me on v5 because I notice class only returns the class for the icon and not the set (fas, fab etc.)
I have tried element but this wont allow me to insert my colour field. I could use jQuery as a very last resort but would prefer not to.
I don’t think Unicode is any benefit to me in this case.
And when I switch to object, WP tells me:
Your PHP code changes were rolled back due to an error on line 794 of file wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php. Please fix and try saving again.
Object of class stdClass could not be converted to stringAny advice appreciated.
Thanks.
- The topic ‘Return format’ is closed to new replies.