AdSense Conditional Author Codes
Hey guys, wondering if you can help me out with a problem I seem to not be able to wrap my head around. I have a blog with multiple authors on it and I'd like to have one of the AdSense spots change depending on the author. That way, by default, anyone who writes a post gets their code on that page and for everything else it defaults back to me.
I was assuming it would be an easy
<b:if cond='data:post.author == "Author"'>insert AdSense code<b:else/> insert my AdSense code</b:if> or something of the sort, but I can't seem to get anything to work. I always end up with error screens, such as one about "invalid data reference post.url: No dictionary named" or about it simply being formatted incorrectly.
Any thoughts on how to accomplish this? I'm sure it's something easy that I'm just overlooking.
Many thanks in advance.