how do i access author variable within the loop?
-
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”;
}
?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘how do i access author variable within the loop?’ is closed to new replies.