Title: Link with dynamic source
Last modified: April 21, 2021

---

# Link with dynamic source

 *  Resolved [Clayton Chase](https://wordpress.org/support/users/claytonchase/)
 * (@claytonchase)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/link-with-dynamic-source/)
 * Hey guys,
 * I’m trying to use Custom Layouts to build a grid of custom post types that allows
   users to download a file right from the grid. I can’t seem to find a way to do
   this since there is no way to set a dynamic source for a link (it only links 
   to the post itself). It would be amazing if you could set a custom field value
   as the source for a link. Unless you have another suggestion on how to achieve
   this.
 * Best,
    Clayton

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

 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/link-with-dynamic-source/#post-14345056)
 * Hey Clayton
 * Would it work for you if this behaved the same as the current link field – except
   you set the source to the custom field, and you manually enter some text (which
   is used across all buttons)?
 * I was thinking to add another “Type” to the custom field element, and call it“
   Link” which would then behave the same as the “link” field allowing for a custom
   label – was going to pop that in an update today / tomorrow.
 * I can see already though that this approach needs to be reworked in the near 
   future – because what if you wanted a custom field for the url, but also for 
   the label text…
 * I see some other plugins using a kind of tag sytsem (PODs) where you can put 
   things like `%post_title%` or `%post_meta:meta_key%` into any input field, and
   it will convert the values on the frontend… I’m still having a think on this,
   I think we’ll do something like this at some point, but possibly provide a nice
   UI for it instead (more like Elementor) and show the actual data in the preview/
   editor area.
 * Best
 *  Thread Starter [Clayton Chase](https://wordpress.org/support/users/claytonchase/)
 * (@claytonchase)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/link-with-dynamic-source/#post-14347263)
 * Hey [@codeamp](https://wordpress.org/support/users/codeamp/), that would be a
   great solution in the mean time. I thought of a merge code system as well which
   would be flexible as well but I’ll give this some more thought. I really love
   the plugin and would be happy to help in any way I can.
 *  Thread Starter [Clayton Chase](https://wordpress.org/support/users/claytonchase/)
 * (@claytonchase)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/link-with-dynamic-source/#post-14348658)
 * [@codeamp](https://wordpress.org/support/users/codeamp/), something that would
   add a lot of flexibility would be a custom html block with the ability to output
   a custom field value via a shortcode. Then I could make just about anything and
   it could be dynamic based on the field value.
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/link-with-dynamic-source/#post-14352956)
 * Hey [@claytonchase](https://wordpress.org/support/users/claytonchase/)
 * Thanks for the suggestion, I think the Custom Field could do it (HTML) but I’m
   guessing maybe it doesn’t run a shortcode inside? (need to test that) – you could
   actually use a manually crafted excerpt as an immediate workaround (as shortcodes
   are supported there) – but then again, your post type may not support them.
 * Also, sounds great you’re happy to help out – would really appreciate that! Let
   me know in what capacity you’d be able to help and I’m all ears (whether its 
   brainstorming some ideas, or testing a beta, or something else entirely) 🙂
 * FYI just trying to finish a fairly substantial release, I hope it will be ready
   tomorrow now.
 * Thanks
    – Ross
    -  This reply was modified 5 years, 1 month ago by [Code Amp](https://wordpress.org/support/users/codeamp/).
 *  Thread Starter [Clayton Chase](https://wordpress.org/support/users/claytonchase/)
 * (@claytonchase)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/link-with-dynamic-source/#post-14357413)
 * [@codeamp](https://wordpress.org/support/users/codeamp/) thanks for the reply!
   I’d be happy to help with some brain storming and beta testing. Let me know how
   to brainstorm ideas. I’d be happy to beta test as well!
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/link-with-dynamic-source/#post-14357695)
 * Thanks!
 * I saw you mentioned you grabbed a copy of S&F Pro – best thing to do, is contact
   support, and just write a message saying you are reaching out to me, Ross, as
   requested.
 * It will get then get assigned to me, and we can have a proper chat by email 🙂
 * Best
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/link-with-dynamic-source/#post-14381207)
 * Closing this as we added the link type to custom fields in 1.4.0 🙂

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

The topic ‘Link with dynamic source’ 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [Code Amp](https://wordpress.org/support/users/codeamp/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/link-with-dynamic-source/#post-14381207)
 * Status: resolved