• Resolved Korveld

    (@teidar)


    Not working on wordpress multisite and MultilingualPress. It’s ok on the main english version, but there’s no image on my lithuanian version of the website. On the frontend and backend.

    How can I fix this?

    I’m using this snippet to output an image

    <?php
    
        // Get The Post's Author ID
        $authorID = get_the_author_meta('ID');
        $authorname = get_the_author_meta('display_name', $authorID);
    
        // Set the image size. Accepts all registered images sizes and array(int, int)
        $size = 'thumbnail';
        $imgURL='';
    
        // Get the image URL using the author ID and image size params
        if (function_exists('get_wpupa_url'))  
            $imgURL = get_wpupa_url($authorID, ['size' => $size]);
    
        // display image on the page
        echo '<img src="'. $imgURL .'" alt="'. $authorname .'">';
    
    ?>
    • This topic was modified 2 years, 11 months ago by Korveld.
    • This topic was modified 2 years, 11 months ago by Korveld.
  • The topic ‘Not working on a wordpress multisite and MultilingualPress’ is closed to new replies.