How to show the value of specific key from nested array?
You can specify the key you want in get_post_meta: echo get_post_meta( $home_starting_player, ‘pb_squad_number’, true ); WordPress loads all meta for any single meta call, so calling get_post_meta multiple times doesn’t introduce any extra overhead.