I'm at a loss. I have profiles developed for my wordpress website, and I want to display content on my page-profile.php that is specific per user profile.
I've looked all around the codex and only found stuff like this: https://codex.wordpress.org/Function_Reference/get_user_meta that only gets the current logged in user
and this:https://codex.wordpress.org/Function_Reference/get_the_author that gets the current post author
Well, on a profile page there is no posts, so that returns null, and current user is wrong for obvious reasons. (it's only right if someone is viewing their own profile)
So does anyone know how to go about identifying the currently viewed profile's username or ID?
This: https://codex.wordpress.org/Function_Reference/get_author_posts_url can return a specific user's ID, however it is static, and I need mine to be dynamic based on which profile is viewed.
page-profile.php? How do you tell that this page should be shown and how do you know which author to show on this page? Do you use native
/author/user/page for this?