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, 9 months ago.

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

    Post count: 40


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

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


    Tareq Hasan
    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.