Title: Insert link on text field (using HTML?)
Last modified: February 15, 2022

---

# Insert link on text field (using HTML?)

 *  Resolved [herondino](https://wordpress.org/support/users/herondino/)
 * (@herondino)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/insert-link-on-text-field-using-html/)
 * Hi, congratulations on the plugin.
 * I have an ACF field called “product-link” and I would like to include in the 
   layout a link using this field.
 * Is there a way to insert HTML code in the text field? If so, I could then use
   [CLICK](https://wordpress.org/support/topic/insert-link-on-text-field-using-html/[acf field=product_link]?output_format=md),
   right?
 * Any suggestion? Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [AndreasJa](https://wordpress.org/support/users/andreasja/)
 * (@andreasja)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/insert-link-on-text-field-using-html/#post-15370245)
 * I saw your question here I hope It’s ok that I answer you. I do this a lot in
   my layouts/templates, so hope this helps:
 * – Set the custom field to be “Field Type: Url” in ACF.
    – In your Custom Layouts
   Template: + Add element “Custom Field” + Set “Custom Field” to be be your custom
   field (search for it, should be without _ in the start) + Set “Data type” to 
   be “Link” + Set “Label” to be your link text, for instance “Click”.
 *  Thread Starter [herondino](https://wordpress.org/support/users/herondino/)
 * (@herondino)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/insert-link-on-text-field-using-html/#post-15370957)
 * Hi [@andreasja](https://wordpress.org/support/users/andreasja/),
 * it worked perfectly! It was exactly what I want, thank you very much!
 * Herondino
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/insert-link-on-text-field-using-html/#post-15371171)
 * Thanks [@andreasja](https://wordpress.org/support/users/andreasja/)
 * [@herondino](https://wordpress.org/support/users/herondino/) glad you got setup
   🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Insert link on text field (using HTML?)’ is closed to new replies.

 * ![](https://ps.w.org/custom-layouts/assets/icon-256x256.png?rev=2475457)
 * [Custom Layouts - Post + Product grids made easy](https://wordpress.org/plugins/custom-layouts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-layouts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-layouts/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-layouts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-layouts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-layouts/reviews/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [link](https://wordpress.org/support/topic-tag/link/)
 * [text field](https://wordpress.org/support/topic-tag/text-field/)

 * 3 replies
 * 3 participants
 * Last reply from: [Code Amp](https://wordpress.org/support/users/codeamp/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/insert-link-on-text-field-using-html/#post-15371171)
 * Status: resolved