From your post I gather that you want to have the relationship field on your frontend form when you're creating your post correct? Is this a Many to Many relationship or a One to Many.
If this is a One to Many relationship then you should be able to add the relationship field on your post form or if your form is auto generated then the field should get added automatically.
I tried the Relationship forms, but are not to introduce all the fields. All I can obtain in a Relationship form is how to connect two existing post. Is this right?
I want a form where the user can introduce all the data, related fields included.
then the solution is:
1) first create a post form to create a new CPT1 "publicació" and then
2) in a second step with relationship forms connect CPT1 "publicació" with an existing post of CPT2 "Collection"
That is correct. If you add the relationship form to the template of CPT1 then you can have the publicació preselected and you will only need to select a Collect to connect to the post.
Sorry, I'm not sure to understand this " If you add the relationship form to the template of CPT1 then you can have the publicació preselected and you will only need to select a Collect to connect to the post."
My doubt: If the post form is for a new post "publicació", how can I add or connect this new post with a Collection? how can I have a publicació preselected?
Sorry, I'm not sure to understand this " If you add the relationship form to the template of CPT1 then you can have the publicació preselected and you will only need to select a Collect to connect to the post."
If the post form is for a new post "publicació", how can I add or connect this new post with a Collection? how can I have a publicació preselected?
You be adding it to a new post form. The idea is that you would've already created CPT 1 and CPT 2. This relationship form assumes that both posts have already been created.
Essentially if you add the Relationship form to the template that is displaying the posts for CPT 1 then you can go to each individual post and then connect them to their corresponding CPT 2 post.