I have written a custom template for returning Algolia search results on my WordPress theme. The part I’m stuck on is how I might possibly retrieve the author’s avatar. I can get the author ID, and I know passing that into the php function
get_avatar would return it, but I don’t think I can use php in the template.
The relevant author logic block is here, with
img tag commented out: