How to upload Author photo?
-
Hi,
I’m using the latest version of Customizr. How do I upload a pic for the author bio on a post? I have the “Custom User Profile Photo” plugin but according to instructions, in order for the photo to show on the post page one must paste the following code into the single.php file:
<?php // Retrieve The Post's Author ID $user_id = get_the_author_meta('ID'); // Set the image size. Accepts all registered images sizes and array(int, int) $size = 'thumbnail'; // Get the image URL using the author ID and image size params $imgURL = get_cupp_meta($user_id, $size); // Print the image on the page echo '<img src="'. $imgURL .'" alt="">'; ?>
Since there is no single.php can you please tell me where to paste? Or if there is another way to get the pics to show? Thanks in advance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to upload Author photo?’ is closed to new replies.