Custom Fields
Re-Envisioned
Support General Transform url custom field into a button

  • Creator
    Topic
  • #26781
    SaraKay
    Participant

    Hello,

    Could I please get some how on how to retrieve each custom field from a custom post type and display it as a button on the front end.

    Thanks.

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

    Hi Sara,

    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/.

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