Advanced Custom Fields Label

WordPress
13 September, 2022 10:31:16
ccatura
Topics: 1
Messages: 1
We are trying to get the label from advanced custom fields, not the value. Below is the code we are using, and we cannot figure out how to get the label (The nicer looking, formatted version of the name). Thank you.

[meta key="key_personnel" meta="true" implode=", "]
13 September, 2022 13:31:20
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

1st possible solution:
* If you have "Return Value" under the field set as "Label". Screenshot attached.

Use shortcode as: [acf field="key_personnel" post_id="[id]"]

2nd possible solution:
Use the custom hook to output labels via ACF as unfortunately ACF do not store labels in meta data: https://codeshare.io/LwYq66

It must be added to your functions.php or as a PHP snippet. "keys" must be modified to your field keys which required to output "Labels".

We remain at your service.
We would really appreciate your feedback at WordPress.org!