Custom Post Type

Posted in: Newspaper
Post count: 196

Hello, I needed to created a custom post type using metabox.io (custom fields). I have made the CPT with single-buy.php. When I add the code, which is the following:

$value_1 = rwmb_meta( ‘date_1’ );
echo $value_1;

$value_2 = rwmb_meta( ‘text_2’ );
echo $value_2;

$value_3 = rwmb_meta( ‘text_3’ );
echo $value_3;

$value_4 = rwmb_meta( ‘text_4’ );
echo $value_4;

It will not display. I wanted this to show-up below the image within the post. How can I achieve this? Thanks.

Post count: 35449

Hi,

Please check this similar topic about custom fields -> https://forum.tagdiv.com/topic/custom-fields-in-block-12/

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.