How to display metabox field data on codestar-framework

Share Now

Share on facebook
Share on pinterest
Share on twitter
Share on linkedin
Share on email

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

Nahid Mahamud

Nahid Mahamud

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