• wp.rook

    (@wordpressrook)


    I have the following code, but I dont think it works in the loop… What I’m trying to do is display a photo next to the blog post that is unique to each author…

    <?php
    
    if(is_author('4'))
    {
    echo "<img src=\"https://impactgr.com/blog/wp-content/themes/atahualpa/images/cheryl.jpg\">";
    echo "this is working";
    }
    ?>
  • The topic ‘variables to identify authors within the loop’ is closed to new replies.