Skip Navigation

[Resolved] create a dynamic url button that links to doc

This thread is resolved. Here is a description of the problem and solution.

Problem:

How to create a dynamic link for PDF files.

Solution:

- Upload your PDF files in WordPress > Media
- Then you will have the URL of the PDF files available for you that you can add to a custom field that is a link/url and not a PDF file.
- That way you are able to use the button block and add the URL of the custom field there.

This support ticket is created 2 years, 2 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.

This topic contains 3 replies, has 2 voices.

Last updated by ashodK 2 years, 2 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2488075
2022-11-02_16-47-04.png
2022-11-02_16-47-36.png

I created a custom field called Doc
In this field I will upload PDF files

On the content template, I want to add some sort of visual representation of the file.
I added a button but can't find a way to link to the document field.
Is there another way. Is there a toolset feature that might do it better?
I need some guidance on this.
Thanks

#2488585

Christopher Amirian
Supporter

Languages: English (English )

Barev Dzez 🙂

I suggest that you upload the PDF files separately in WPML > Media.

Then you will have the URL of the PDF files available for you that you can add to a custom field that is a link/url and not a PDF file.

That way you are able to use the button block and add the URL of the custom field there.

If you want to keep using the File custom field you can think about the solution below:

https://toolset.com/forums/topic/displaying-file-title-with-a-link-for-custom-field-for-manuals-etc/#post-1666341

Shnorhakalutyun 🙂

#2488779
2022-11-03_10-19-57.png

Thats a good idea
how do I add the dynamic URL of the custom field there.
I added the link field but I don't see it when I try to link with button.

Thanks

#2488789

My issue is resolved now. Thank you!