Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $post_id = get_the_ID();
- $field_name = "prim_color";
- $field = get_field_object($field_name, $post_id);
- if ( $field ):
- echo '<li>' . $field['label'] . ': <span>' . $field['value'] . '</span></li>';
- endif;
- ?>
Add Comment
Please, Sign In to add comment