• Hi,

    I use Getwid, because i find your plug-in very easy to use, and super functionnal, to display custom post types with custom fields and We can see almost all the content in the back end editor.
    I have a trouble though, I create team member custom type, with Url ACF field to display a link to their linkedin profile.
    So i create a custom template, to display information (picture, name, fonction) but i would love to display the linkedin Icon with the ACF url field as a link, and i have no glue how to do it. I can easily display the url field, but appears plain text, it’s not the behaviour i wish.
    The only way i figured it out, is to use a text field with the icon and the link as my linkedin custom field.
    But do you have a smarter idea than that? Maybe something i missed.
    Thanks for your help.

    • This topic was modified 2 years, 6 months ago by yellink.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support eugenewhite

    (@eugenewhite)

    Hello there!

    In this case, you may try to change the type of the custom field to WYSIWYG Editor to be able to link the text URLs or paste any other content like shortcodes, etc. It will be rendered with proper formatting on the custom post type block. Let me know if it’s helpful.

    That’s not a solution because by doing like that you have to put the same html for every member, and if you want to change the markup in the future you have to change it everywhere…
    What would be great is to allow to put PHP code in a file that would be loaded as getwid template in order to put such a code:
    <ul><li><a href="<?php echo get_field( "facebook" ); ?>">Facebook</a>...</li></ul>

    Currently I do that with the plugin “Lazy blocks”, I create blocks with PHP code and then I create getwid templates which use those blocks…

    Thread Starter yellink

    (@yellink)

    Hello,
    Thank for your both answers. Well gonna give a try to Lazy Blocks, seems super interesting. Thanks a lot .
    I jumped one month ago in Full Editing, and I have so much pain to reproduce what i used to do with classic theme without the help of “gutenberg block plug-ins”. It’s such a step, because i am not a developper, and creating custom advanced block other than a simple texte bloc is quite difficult for me.

    Plugin Support eugenewhite

    (@eugenewhite)

    Hello there!

    Sorry for the late response. I would like to inform you that I escalated your request to our developers’ team for them to consider such an improvement implementation in one of the future plugin releases. We let you know if we receive any updates on this matter.
    In case you have any additional questions, don’t hesitate to ask.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom field as link on cpt query’ is closed to new replies.