Problem with e2pdf and checkbox

12 September, 2023 07:28:12
Roanne
Topics: 1
Messages: 1
Hello,

I have a meta fiel named "allergenes" as a checkbox

When I add that field in EP2pdf I have something like this

ALLERGENES :a:3:{s:64:"wpcf-fields-checkboxes-option9443d8d0c4351c365e5490816becb2a0-
1";a:1:{i:0;s:7:"Céleri";}s:64:"wpcf-fields-checkboxes-option5c9e4af5493cd1608259d56880f1eb92-1";a:1:{i:0;s:12:"LaitLactose";}s:64:"wpcf-fields-checkboxes-option5064d9fc1042dbef5805daa6891edaf9-1";a:1:{i:0;s:7:"Sésame";}}

and I'd like something like this : ALLERGENES : Céleri, lait/lactose, Sésame

I read your answer for a post from april 2022, so I'v tried to insert this in html area

[e2pdf-wp key="wpcf-recettesallergenes" meta="true" implode="<br>"]

but nothing change.

Have an other idea ?
12 September, 2023 07:58:30
E2Pdf
Support
Topics: 7
Messages: 3176
Hello,

Check please the current topic:

https://e2pdf.com/support/desk/showing-checkbox-values-in-print-out

In the last response, there is a PHP snippet that must be added to your theme functions.php or as a PHP snippet: https://codeshare.io/Gbbl0w

After adding the snippet, the shortcode: [e2pdf-wp key="wpcf-recettesallergenes" meta="true"] must output comma-separated values.

* wpcf-checkbox-1 must be replaced with wpcf-recettesallergenes
We would really appreciate your feedback at WordPress.org!