Plugin Author
E2Pdf
(@oleksandrz)
Hello,
Do you use any page builder/page layout plugin for that custom post type? E2Pdf supports some page builders where E2Pdf shortcodes can be used in case template design is applied for page / posts.
If the post type is just created via Forminator Form and no template is assigned, unfortunately, it would need to create a custom page template under your theme: https://developer.wordpress.org/themes/template-files-section/page-template-files/, https://developer.wordpress.org/themes/template-files-section/custom-post-type-template-files/ that will be applied to your post type.
Inside that PHP Template you will need to generate a shortcode via PHP by defining “dataset” with the Post ID, for example:
echo do_shortcode('[e2pdf-download id="1" dataset="'.get_the_ID().'"]');
hello, yes i use Oxygen builder.
Plugin Author
E2Pdf
(@oleksandrz)
We were reviewing Oxygent builder integration, but unfortunately, it has no required hooks for auto integration, however, you must be able to use the Code Block widget and use the code below: https://ibb.co/4jRBV64
<?php
echo do_shortcode('[e2pdf-download id="1" dataset="'.get_the_ID().'"]');
?>
thank you very much for your quick reply. Please explain me because i am a little bit confused, when i create the e2pdf template, i choose the WordPress as extension, what should i choose as item?
thank you!
Plugin Author
E2Pdf
(@oleksandrz)
“Item” must be set to the custom post type of the post that is created. We suppose it must be a “transfer”.
Thank you! A couple of questions more please,
is it possible to have one template for each user?
is it possible each template has its own serial number which will increase by 1?
Thank you.
Plugin Author
E2Pdf
(@oleksandrz)
– Do you mean PDF to have user details? If so, You can build E2Pdf Template with the same connection and use [e2pdf-user] shortcodes inside: https://e2pdf.com/docs/shortcodes/helper/e2pdf-user
– By default, E2Pdf doesn’t have such functionality. As an option, you can try User ID as a unique Identifier:
[e2pdf-user key="ID"]
or build your logic to save the unique incremented value in user meta and output inside PDF via [e2pdf-user] shortcode. It will require some custom coding.
hello,
no i mean each user to open his own template.
thank you.
Plugin Author
E2Pdf
(@oleksandrz)
If you mean on the backend – unfortunately no, there is no such possibility at this moment. We will add this point for review.
thank you for your replies!
Hello, one more question please,
can i get on the above template which has the custom fields of the post “transfer” a custom field which is image from the curent user? and if yes how? beacause i am trying different shortcodes but i can’t manage it.
thank you!
Plugin Author
E2Pdf
(@oleksandrz)
Is the image stored in the user meta? If yes, it must be possible to use the shortcode as:
[e2pdf-user key="metakey_that_store_image" meta="true" attachment_image_url="true" size="full"]
If it still won’t work, are you able to find any shortcode in the visual mapper that can contain that image? If so, please create a temporary “textarea”, map it with that shortcode, generate a PDF, and let us know the output.
yes it is in user meta and worked with the shortcode you gave me.
thank you!!
Can i ask you something else please?
i want to print the content of a repeater in oxygen builder, which repeater will have data from post type “Transfers” that may be filtered with some way and i will not know exactly the size of those records, it may be 10 or 20 or more or less. Is there any change to print those and if yes with what shortcodes?
Thank you!
Plugin Author
E2Pdf
(@oleksandrz)
Hello,
Do you mean the repeater element on the page? If so, we suppose it must be extracted from the page source. To see if it’s possible, we need to see the page example.