How to get data from user meta custom fields created with acf-pro plugin?
Here’s what I use: <?php global $current_user; wp_get_current_user(); ?> <?php if ( is_user_logged_in() ) { echo ‘User ID: ‘ . $current_user->ID . “<br>”; ?> <a href=”<?php echo $current_user->favorite_url;?>”>View</a> <?php } else { wp_loginout(); } ?> You can just use the ID you have and change $current_user->ID to $current_user->user-country