I am using a custom field of type "Post". I am using it to hold multiple posts references.
As a field type, I am using the Checkbox list.
The problem that I am facing is that I do not know how can I modify option labels so that I can include other fields data. Right now post title is being shown with each box.
My second question is that how can I add data-attributes to each list element.
I am stuck, any help will be greatly appreciated. Thanks!