CMB2/CMB2 - Display the Metadata

PHOTO EMBED

Wed Mar 10 2021 06:29:56 GMT+0000 (Coordinated Universal Time)

Saved by @francis_cubi #php

<?php
// Grab the metadata from the database
$text = get_post_meta( get_the_ID(), 'yourprefix_text', true );

// Echo the metadata
echo esc_html( $text );
?>
content_copyCOPY

https://github.com/CMB2/CMB2/wiki/Basic-Usage