Custom Fields
Re-Envisioned
Support Meta Box AIO URL being displayed on the front instead of a button

  • Creator
    Topic
  • #29789
    zoro
    Participant

    Hello

    I choose a URL field for a CPT and want to display it as a button on the front end, how do I achieve it? Currently the URL is being shown directly. If I choose the button field, I see the button when editing the post but now way to input a URL

    Also what does the AIO mean in the Extension name?

    Thanks

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #29812
    Long Nguyen
    Moderator

    Hi Zoro,

    Thank you for contacting us.

    For example, you can wrap the field value in a <a> tag and a <button> tag to make the button clickable.

    <a href="<?php echo rwmb_meta( 'field_URL_id' ); ?>">
        <button>Click me!</button>
    </a>

    Please follow this documentation to know how to output the field value https://docs.metabox.io/displaying-fields/.

    AIO means All In One, just need to activate this plugin to use all extensions here https://metabox.io/plugins/

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.