Support

Account

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.

    <?php
    $user_info = get_userdata( $post -> post_author );?>

    These work:
    <?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.