Home › Forums › General Issues › Displaying all usernames selected from a custom field › Reply To: Displaying all usernames selected from a custom field
Thanks John, I can see the array but I’m having issues with the syntax to only display one value. I’ve got:
<?php $players = get_field('select_players');
foreach($players as $player) {
echo $player['nickname'];
} ?>
But I still get the same issue of only the 1st character of each value is echo’d:
CBtttt2D<
It’s not selecting the [‘nickname’] only, but it’s doing ‘something’ because without that it prints the whole array. I hope that makes sense.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.