Yes, grab the value via get_post_meta
, then it’s just a matter of generic PHP loops and string manipulation.
Try using the explode
function with \n
as the separator to create an array you can loop through. You may need to check for empty values since some of your lines are blank, but the get_post_meta
part is the only part of this question that requires WordPress knowledge:
$data = get_post_meta( $post_id, 'What Responsibilities Will I have?', true );
$lines = explode( '\n', $data );
// now do things with the $lines array