Support

Account

Home Forums General Issues Pull in fields from page with same name as username Reply To: Pull in fields from page with same name as username

  • Hi Elliot,

    Thanks for you help with this. I’ve tried your suggestion which broke my page – assuming it was because $other_page = $current_user->user_login was missing a ; on the end?

    Anyhow, this is what I have so far but still doesn’t pull anything in from the ACF field in the page:

    <?php 
           global $current_user;
           get_currentuserinfo();
    										$other_page = $current_user->user_login;
    	if( is_page( $other_page ) ) {
    	the_field('favourite_movie', $other_page);
    	}
       ?>