I may be using the word - 'Profile' wrong here, but after two hours of googling am left with zero results. So, the query is as follows -
We wanted to make a site where we can invite writers to write their post and be able to edit and post easily. We achieved that using combination of plugin and custom code. We went ahead and made a /profile
page where the current logged-in user can see his posts, his details (username, email etc) and can view/edit his articles on front end.
Now the issue is - We want to give every registered user his own such profile which any other user can visit, read his 'about me' section, view his posts etc. In short, we want every user to have their own profile, something as /profile/userA
Do you have any approach that you can suggest or any tutorial you can refer?
author.php
will be same for everyone like/profile
is right now. I believe, I'd need something likeauthor-{nicename}.php
and the problem is that the{nicename}
should dynamically generate so that the code we are using in/profile
can be used to display set of information of user.yoursite.com/author/name/
. You can work directly inauthor.php
instead of working in a page template and you will have what you describe in the question.author.php
was the way to go.