Ho to get a user ID from the profile displayed URL
I am working on a client’s site and I would to do the following:
1) I am on my own profile, I would see a list of posts I created (this is easy and I am done with it)
2) Now, when I am on someone else’s profile page say http://www.somesite.com/members/someguy/
I should see a list of posts they have published. I can’t seem to find a function that would pass me the User’s ID from the URL so I run the regular WP loop.
Any help ?
You must be logged in to reply to this topic.