Trouble displaying multiple values of a custom field key
-
Hi,
I am a total newbie at this thing, but i have trouble at displaying multiple values of one custom field key, I am using ACF plugin and have in the loop the following code:
Type of sample: <?php $key = get_post_meta($post->ID, 'sample_case', false); print_r($key); ?>
this is what is displayed on the site:
Type of sample: Array ( [0] => Array ( [0] => Sample case 1 [1] => Sample case 2 ) )
I would like it to look like this:
Type of sample: Sample case 1, Sample case 2
How can i do this, I searched the internet and can’t seem to find a solution that would do something like this.
Thanks in advance for any help
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Trouble displaying multiple values of a custom field key’ is closed to new replies.