Get custom fields from multiple metaboxes
-
I have multiple metabox panels in my write posts. Is it possible to get the names and values of all fields belonging to each metabox?
In my posts I’m currently using a loop (shown below) that gets the values of all fields but I need to have them in sections based on metaboxes. Is that possible?
$custom_field_keys = get_post_custom_keys(); foreach ( $custom_field_keys as $key => $value ) { $valuet = trim($value); if ( '_' == $valuet{0} ) continue; echo get_post_meta($post->ID, $value, true); echo "<br />"; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get custom fields from multiple metaboxes’ is closed to new replies.