Hi Team,
I have created a file type custom user field for attaching user reports. Now I want to display that attached file (PDF/Image) on front-end. I have tried your previous solutions posted on previous tickets but that didn't worked. Could you please help me?
HI Ankit,
Thank you for getting in touch.
Where would you want to display the custom field ? Is it a profile page for that specific user?
Please let me know.
Thanks,
Shane
I have created a page, in which I want to display file on front-end. It will show the logged-in users related data only. Just kind of profile page.
Hi Ankit,
In this case you only need to add the Types shortcode related to the custom field on the page and the data should show up as intended.
Meaning if you use
[types usermeta='my-field'][/types]
Then it should show the correct information because this will default to showing the info of the currently logged in uer.
Thanks,
Shane
okay but how to show/preview PDF on front-end with this shortcode?
Hi Ankit,
Showing the preview of the PDF file itself is not something that our Toolset plugin handles. This will need to be done by a separate 3rd party plugin or custom code.
Thanks,
Shane