How to display metabox field data on codestar-framework

Share Now

You should use _custom_page_options as this is the id for your key declared into metabox config file. So your code must look like this:

$meta_data = get_post_meta( get_the_ID(), '_custom_page_options', true );
echo $meta_data['section_1_text'];

HINT: LOOK CODE ON MBHOUSE PROJECT services-page-template.php

Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert