Skip Navigation

[Resolved] No way to insert dynamic link with "Fields and text" block

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

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by stirea 4 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1665047

Hello,

I am using the blocks editor and I setup a custom field whose field type is URL (I have other custom fields too).

What I am trying to do: make another custom field clickable, the link being the custom field whose field type is URL

Here is an example:
field A = "website name" (field type = string)
field B = "website URL" (field type = URL)

I would like to display field A (view or single template) and when people click on field A they go to the URL specified by field B.

In other words, I would like to setup a dynamic link.

I remember that I could access this dynamic link feature in the settings in the right sidebar a few months ago.
It seems like I can not access it anymore.

By the way, the fields to make clickable are inserted via the "Fields and text" block

I was wondering if I need to revert back to some "layout" view (what we had before blocks) in order to be able to code something like field A

Thanks for your help

#1665281

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stirea,

Thank you for getting in touch.

Actually you will need to do it like this.

<a href="field B">field A</a>

I'm not seeing any way to add a dynamic link to the single line text field. So the old method is still relevant for this setup.

Thanks,
Shane

#1667419

Hello Shane,

Thanks for your feedback.

Actually I have found some kind of a workaround. It consists of using a Button block instead. This button block allows to insert a dynamic text and a dynamic link. Then it is just a matter of styling the button so that it does not look like a button. But this trick might not help in certain circumstances, like making images clickable for example.

Thanks again,