Custom Field as link

Posted in: Newspaper
Post count: 6

Hello,
I’ve set up some custom fields on a CPT for contacts, like e-mail addresses, telephone numbers, websites url etc. I need to put those fields values in a tagdiv cloud template. I followed your instructions and i can see the custom field on the page I needed, but I’d need to use those values as links (the result should be ACFemail“). How could I reach this? Thank you.

Post count: 27744

Hi,

It depends on how you have set the custom field type here -> https://i.imgur.com/cENnfww.png

Thank you!

Post count: 6

Hello,
your solutions seems to be not so flexible, I’d need more control on the ACF field values. For example, ACF seems to not provide telephone number field type, so i would like simply access to ACF field and build my code. Unfortunately I tried to use ACF custom shortcodes in the HTML code block but it does not work. How could I resolve?

Post count: 27744

Hi,

Did you try to make a change in the ACF plugin? For more information about how this plugin works, you need to contact the authors of the plugins.

Thank you!

Post count: 6

Hello, I think it’s not a problem with ACF Plugin. ACF Plugin allow to use shortcodes (like [acf field=”age”]) to access the value I need in a customized HTML. Unfortunately, it seems like TagDiv Composer does not allow to use those shortcodes. So I’d like to know how could I do the same thing, or at least how could I develope a customized object for TagDiv composer.
Thank you

Post count: 35449

Hi danieleprimavera,
Normally if you use acf with our theme then you can use the special element from tagDiv Composer to display those elements and this element is the “custom filed” – https://i.imgur.com/dfQRVir.pnghttps://i.imgur.com/pJfe151.pnghttps://i.imgur.com/Gh3HNoe.png so there is no need to set the shortcode in HTML, just use the special elements to render the acf info – https://forum.tagdiv.com/custom-fields-support/
I hope this will hep you!

Post count: 6

Hello Calin, thank you for you answer.
Obviously I tried to use the element “custom fields” and it works nice if your’re going to obtain standard rendering in HTML. But if you want to be free to use ACF field values in your HTML code that seems not to be possible.
I’d need to develope customized html object using the acf field values. I tried using the textbox but the result seems not to be so stable. So I’d like to boild my customized TagDiv object like I did with other composers. How could I do it?
Thank you.

Post count: 35449

Hello danieleprimavera, unfortunately, it’s over our skill developing a customized object, but if you want you can create a plugin and duplicate the “custom fields” element, or an alternative, if you want you can try to set the shortcode in a column text or text with title – https://i.imgur.com/4kW42oK.pnghttps://i.imgur.com/2vqI6Il.png
Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.