[Resolved] Display a file upload in template as a link instead of a full URL
This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Tell us what you are trying to do?
I have a file upload custom field that I want to display as a link (Download the file) instead of a full URL that points to the file
Is there any documentation that you are following?
I am following the default documentation on how to add custom fields to a template
Is there a similar example that we can see?
no
What is the link to your site? hidden link
Hi Shane,
Thanks for your reply.
I am using the block editor in a content template to add the field to the front end page.
I have created several custom fields to the "Webinar" Post type. One of the fields is a file upload where I upload the pdf. However, I don't want the user to see the full URL of the file location. I know there are workarounds, but I want eventually to create front end forms to add the webinar listings, so I want the front end user to be able to upload their pdfs...etc..
The html code of the block is: