I would like to add to my theme some links so that if a user is logged in, he may go to his own page which lists his own comments and posts.
I have found several functions to help me create the template parts. For example:
How to display logged in users comments (only) on Wordpress
Comment Author Link on Wordpress
The problem is that I cannot find any information on creating the link. It seems like all of the functions for the_author do not accept an ID, such as current user ID. i would like to know how to create links outside the loop, to retrieve a template part, such as current user's comments and posts. Can I create a new _link() function? A search of the codex for _link() isn't returning what I need.
So far I managed to return the actual post titles, but I want a link at the top of my page that says "My Recent Activity", something like that.
Thanks.