Support

Account

Home Forums General Issues Changing get_field link Reply To: Changing get_field link

  • Hi @jacoblhughes

    I’m afraid I don’t understand the current state of the link and how you want it to be. Could you please share the screenshot of it and let me know the result you expected?

    If you want to add it as a link, you need to use the a HTML tag like this:

    <a href="<? echo get_field('net_members_stock_check_links'); ?>" >Link Title</a>

    If you want to use a button, you can try the following code:

    <button onclick="location.href='<? echo get_field('net_members_stock_check_links'); ?>'" type="button">Link Title</button>

    This page should give you more idea about it: http://stackoverflow.com/questions/2906582/how-to-create-an-html-button-that-acts-like-a-link.

    Because this is more related to HTML, kindly visit their community instead.

    I hope this makes sense 🙂