I'm coming to you because I would like to do something that I can't do.
On my site, during their first connection, each user creates a custom post type "company" before being redirected to their dashboard.
After that, it is no longer possible for them to create another post of this type.
On their dashboard, I would like to create a "Post Form" which allows you to modify the content of the "company" post they created when they first connected.
Is there a way to do this?
I don't want to show a view of the post with an edit link (I know how to do that), I just want the form to be displayed as soon as we open the dashboard.
Perhaps it is possible to create a form allowing to modify the last post (of a specific custom post type) that the user published?
You are talking about a front-end "dashboard" page, rather than the WordPress backend dashboard, is that correct?
Showing a View of a post with an edit link is nearly the right answer.
You use a View to create the context to tell the form which post to edit. And rather than linking to the edit form in the output of the View, you can include the form itself.
So, create your View with the Query Filter required to return the correct post (e.g. display posts of the appropriate content type with a post_author filter such that the author is the same as the current user, I'm guessing that's how your set up works).
Then insert the edit form directly in the output of the View, where the context for what to edit will be the post returned by the View.
I think that is what you are aiming for, please correct me if I'm wrong.