• Resolved Clayton Chase

    (@claytonchase)


    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

    (@codeamp)

    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

    (@claytonchase)

    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.

    Thread Starter Clayton Chase

    (@claytonchase)

    @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

    (@codeamp)

    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 3 years, 6 months ago by Code Amp.
    Thread Starter Clayton Chase

    (@claytonchase)

    @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

    (@codeamp)

    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

    (@codeamp)

    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.