Custom post type data subkey

WooCommerce
March 13, 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
March 14, 2022 00:37:07
E2Pdf
Topics: 7
Messages: 3617
Support
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!
March 14, 2022 01:56:23
j.durand
Topics: 8
Messages: 29
Hello,
[e2pdf-wp id="123" key="post_title"] works.
March 14, 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
March 14, 2022 04:50:33
E2Pdf
Topics: 7
Messages: 3617
Support
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!
March 14, 2022 05:24:36
j.durand
Topics: 8
Messages: 29
That's ok now :)
Many thanks for the quick support, as usual.
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.