Skip to content

Displaying Field Data

Francesco Michelini edited this page Jan 8, 2014 · 2 revisions

Custom Meta Boxes stores all data as standard post meta.

It uses the field ID as the meta key.

Displaying Single Fields

$value1 = get_post_meta( get_the_id(), 'example_field_1', true ); 
$value2 = get_post_meta( get_the_id(), 'example_field_2', true ); 

echo $value1;
echo $value2;

Displaying specific field types

See individual field wiki pages for more information on how to use and display data from these field types.