I need a function that returns the author as a string, so that I can do
if (func() == “admin”)
blabla…
the_author() seems to fail to be this func(), because, if I understand it right, the_author() just display the author’s name in html.
Yes. the_author() displays the name of the author on the page. However what I need is a PHP string, so that it can do a comparison with a string constant.