Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gangov

    (@gangov)

    Hello again and thank you for your reply.

    I’ve added this code

    <?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="">';
    ?>

    to single.php, functions.php and page.php as well, but the author photo didn’t showed up.

    I’m trying to add the photo to only one existing post of the author. However we have tried to use another plugin, but I asked to remove it, because I didn’t liked it. Now the deleted plugin stays below the original author info.

    This is a custom made wordpress theme.

    Can you tell me more how can I trace the code back, because I’m not really familiar with PHP, I can provide you with logins, if that is more convenient for you, you need just to tell me where to send it.

    Thread Starter gangov

    (@gangov)

    OK, I’ve added the code in functions.php and single.php as well, but it is not showing, any advice?

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