Home › Forums › General Issues › User info by page name › Reply To: User info by page name
This is what I am using to identify the author inside my template. I chose to make a custom template because it will allow me to duplicate the page and set the author to specific person. Person will then be able to an account page I set up with custom user form, which includes two image fields (a logo and background), to customize their page.
$user_info = get_userdata( $post -> post_author );?>
<?php echo ” . $user_info->farm_name . “\n” ?>
<?php echo ” . $user_info->contact_number . “\n” ?>
<?php echo ” . $user_info->stream_name ?>
<?php echo ” . $user_info->app_name ?>
<?php echo ” . $user_info->background_color . “\n” ?>
<?php echo ” . $user_info->font_color . “\n” ?>;”>
I tried using the example, but that left me no fields rendering.
This is the closest I’ve gotten to a return of anything, in this case, the field id.
<?php echo ” . $user_info->background_image ?>
I do apologize for my lack of knowledge. Html has been much friendlier to me. I honestly paid someone a good sum to set this all up for me 2 years ago, but after a multitude of excuses, and finally ignoring me completely it’s obvious if I want something done, I’ll have to do it.
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!
The new features in ACF 6.1 mean we’ve nearly doubled the number of translatable strings, and we need help translating them into your language. See how translations are progressing and how you can help at the link below. https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 17, 2023
© 2023 Advanced Custom Fields.