How to display every pdf of the user in his profil

20 May, 2020 10:07:57
Topics: 3
Messages: 6
Good morning,
I would like to display all the pdf files generated by a user on his profile. Only, the shortcode provided by e2pdf allows to display only one pdf : [e2pdf-download id="6"].

I find all the user-generated pdf's in the database. But I don't see the option to display all the pdf generated by a user with the shortcode.

I want the user to be able to fill 'X' times the form and then find 'X' times the pdf on his user profile.

How can I do this with your plugin?

Thanks to you,
Julien,
20 May, 2020 20:53:46
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

E2Pdf uses actually generation process on demand and depends on entries. Which extension do use with E2Pdf? If it's formidable form then you can just create a Formidable View where will be filtered entries by use and shortcode that can be used inside view: [e2pdf-download id="6" dataset="[id]"]

If it's not Formidable Forms, it could be used some PHP hooks to fire shortcode via:
do_shortcode('[e2pdf-download id="6" dataset="'.$dataset_id.'"');

* where $dataset_id is dynamic entry id for which PDF must be generated.

We remain at your serivce.
We would really appreciate your feedback at WordPress.org!