-
Notifications
You must be signed in to change notification settings - Fork 124
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.
$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;
See individual field wiki pages for more information on how to use and display data from these field types.
- Setup/Install Custom Meta Boxes
- Creating a custom meta box
- Displaying Field Data
- Optional Generic Field Args
- Repeatable Fields
General
- Text Field
- Small Text Field
- Number Field
- URL Field
- Textarea Field
- Code Field
- Select Field
- Checkbox Input Field
- Radio Input Field
Date & Time
WordPress
Media
Utilities