Support

Account

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.