Home Forums Plugin Support WP User Frontend Pro $curauth custom field image

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 5 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8978

    david
    Participant
    Post count: 40

    Hi,

    I want to add a “custom field: image” but the author's profile (author.php) image is not displayed, what is the error?
    Thanks!

    My code:
    meta_key name: image_profile
    < ?php echo $curauth->image_profile; ?>

    #8981

    Tareq Hasan
    Keymaster
    Post count: 2831

    The image attachment ID is stored in the meta field. Do you see any number when you print the value?

    Use like this:
    <?php echo wp_get_attachment_image( $curauth->image_profile ); ?>

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘$curauth custom field image’ is closed to new replies.