I have created a cpt Notes and created it a many-to-many relationship with the standard posts. I have a front end form to add new Notes and I want to be able to select the Post to associate it with. You can see the start I have here:
hidden link (pass: notes)
Also not sure why but the date field does not work in this form.
Thanks for the link but I'm not using the Block editor so that doesn't really help, isn't there better documentation on this? I tried to create a Relationship Form but it doesn't seem to work, on the font end it says "The item to connect items to can not be connected with this relationship". But is the overall process to do this (create a new Note and associate it with a post) to actually have 2 forms? A relationship form then an Add note form? This would be super clunky and basically not a usable solution.
For Many to Many relationships it will require that you have a separate relationship form to connect the posts on the frontend. Only one to many relationships can have the Post and Relationship creation all on one form.
Our development team is working to improve this but currently this is the only way to connect the many to many relationships on the frontend.
That's too bad, it basically makes front-end many to many post adding unusable. Hopefully that improvement comes soon.
So I just deleted the many-to-many relationship and created a new one-to-many relationship(Many notes to one Post) and added the appropriate field to the form:
[cred_field field='@post-note.parent' class='form-control' output='bootstrap' select_text='--- not set ---' order='date']
But the Posts are not appearing in this select field. You can see what I mean here: hidden link (pass: notes)
I added this use_select2="never" to the shortcode and it seems to now work:
[cred_field field='@post-note.parent' class='form-control' output='bootstrap' select_text='--- not set ---' order='date' value='select' use_select2="never"]
Secondly no this shouldn't be a necessary adjustment as the posts should show up. Is it that when you type in the name of the post that you want to select as the parent it doesn't work ?
Or is it that you just want to see the predefined listing ?