How To Get a Post Author’s ID (In Single Post View)?
-
Hello.
I want to be able to get the post author’s name or ID in single post view, but I couldn’t find a working function in the WordPress codex yet.
get_the_author() can be used only inside The Loop and I want to get the information I need inside the <head> part of my site (before the Loop starts).
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How To Get a Post Author’s ID (In Single Post View)?’ is closed to new replies.