I have a custom meta field for my posts and I’m able to display the value. But it only displays one row. Since I have more than one value I need to display all of them. I know I probably have to do some kind of for or while loop, but I don’t know how to do it.
This is my current code:
$meta_value = get_post_meta( get_the_ID(), 'meta-text', true );
if( !empty( $meta_value ) ) :
echo $meta_value;
endif;
How do I change that snippet to display all rows?