Custom post type data subkey

WooCommerce
13 March, 2022 10:32:18
j.durand
Topics: 8
Messages: 29
Hi again, this one should be my last for a while I hope.

Same request as the previous one, for Woocommerce order pdf template but with custom post type instead of user.
[e2pdf-wc-order key="fsbdd_user_formateurrel" meta="true"] render custom post type ID.
fsbdd_user_formateurrel is my custom field (metabox io). It's a custom post type select dropdown.

I tried:

[e2pdf-wp id="dynamic" key="post_title"][e2pdf-wc-order key="fsbdd_user_formateurrel" meta="true"][/e2pdf-wp]

and other configurations (even with normal wp posts), with no result. This one is for post_title but I need it for some custom fields from the related cpt named "formateur".

Best regards
14 March, 2022 00:37:07
E2Pdf
Support
Topics: 7
Messages: 3177
Hi,

Can you let us know please what is the output of simple [e2pdf-wc-order key="fsbdd_user_formateurrel" meta="true"] shortcode usage inside "textarea"? Is it clear Post ID?

Does it work if you will use some strict shortcode as: [e2pdf-wp id="123" key="post_title"], where 123 is the needed Post ID?


We would really appreciate your feedback at WordPress.org!
14 March, 2022 01:56:23
j.durand
Topics: 8
Messages: 29
Hello,
[e2pdf-wp id="123" key="post_title"] works.
14 March, 2022 02:12:00
j.durand
Topics: 8
Messages: 29
Sorry, I forget your first question...

[e2pdf-wc-order key="fsbdd_user_formateurrel" meta="true"] render the cpt ID
14 March, 2022 04:50:33
E2Pdf
Support
Topics: 7
Messages: 3177
Hi,

We currently could replicate issue on our side and released a support for "Dynamic" IDs in latest RC version. Can you please update plugin to RC 1.17.22 and check if it will work as expected:

[e2pdf-wp id="dynamic" key="post_title"][e2pdf-wc-order key="fsbdd_user_formateurrel" meta="true"][/e2pdf-wp]

We remain at your service.
We would really appreciate your feedback at WordPress.org!
14 March, 2022 05:24:36
j.durand
Topics: 8
Messages: 29
That's ok now :)
Many thanks for the quick support, as usual.