Support

Account

Home Forums Front-end Issues Display user field value in template Reply To: Display user field value in template

  • Thank you!

    This was the solution i’ve come up with now:

    $image1 = get_field('profilbild', $user);
    $image2 = get_field('funbild', $user);
    $name = get_field('nickname', $user);
    echo '<li><div class="image_wrapper"><img class="profile1" src="';
    echo $image1['url'];
    echo '"/></div><img class="profile2 hoverShow" src="';
    echo $image2['url'];
    echo '"/><div class="imageOverlay"><p>';
    echo "$name";
    echo '</p></div></li>';

    Maybe this helps anyone reading this later 😉