URL being displayed on the front instead of a button

Support Meta Box AIO URL being displayed on the front instead of a buttonResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29789
    zorozoro
    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

    #29812
    Long NguyenLong 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 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.