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
Hey @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.
@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.
Hey @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.
@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!
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
Closing this as we added the link type to custom fields in 1.4.0 🙂