Sorry if this is in the docs but I can’t find it.
Is it possible to loop through all slt custom fields and retrieve their keys as well as their values?
This function, I think, only retrieves the values of the fields: slt_cf_all_field_values()
I would like to do two things:
(1) Retrieve a list of the keys on their own (to output in a list)
(2) Retrieve the keys at the same time as the values so I can assign them a css classname
Even better would be able to retrieve the human readable ‘label’ as assigned when the fields are registered, which labels the fields at the back end. Can these be retrieved at the front end?
- The topic ‘Retrieving key names and key/value pairs’ is closed to new replies.