difference between get_the_author() and the_author()
-
Im reading slowly how to make theme.
I found those two and i see the difference in usage.
With parameter the post_id i suppose the_author can do a lot, like maybe (have no idea if those exist) get author of the last post in another category and show it in another post.
On the other side get_the_author() has no parameters, there is one deprecated, and it seems like it can only show author for the actual post, which i supposed the_author() with no parameter is what it do if im right.
It even uses another variable to work like:
$author = get_the_author()
Which make me believe it may be a soon to be discontinued tag.
And that the_author is the new one that you are supposed to use in any new theme. Am i right. Or am i misunderstunding how they work.
- The topic ‘difference between get_the_author() and the_author()’ is closed to new replies.