Viewing 3 replies - 1 through 3 (of 3 total)
  • Can you send me or post the code you used to get it to work, for some reason I can’t get it to pull the custom photo on the posts page. Thanks!

    Thread Starter Szyam

    (@szyam)

    hey @joshheppner , this is an example that I’m using:

    <?php
              $contributor_id = get_the_author_meta('ID');
              // Set the image size. Accepts all registered images sizes and array(int, int)
    	        $size = 'medium';
    
    	// Get the image URL using the author ID and image size params
    		$imgURL = get_cupp_meta($contributor_id, $size);
    
    	// Print the image on the page
    	        echo '<div class="author-wrapper">
                   <img src="'. $imgURL .'" alt="">
                   <p class="contributor-bio">' . get_the_author_meta( 'description' ) . '</p>';
     ?>

    Which is inside the loop.

    Excellent catch Szyam. I’ll be adding this in the next release.

    Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘update_usermeta is deprecated’ is closed to new replies.