Posts on user profiles


So I’ve created user profile pages via calling a template through a route. I’m wondering how I can create posts on user profile pages.

What I had in mind is this:

  1. Create an “All posts” page.
  2. On user profiles, have a form which creates a child page of “All posts”, with a user field “author”.
  3. On the user profile, retrieve all posts which have the current user as author.

Is there a better way or is this fine enough?

I’d create all posts that belong to a particular user in a subfolder with the user name under posts, not all in one.

Does that means the page would be somewhere like content/username/post-name?

That’s an option as well, but my thought was /content/posts/username/postname