1) Using Toolset Forms (cred-frontend-editor), attempting to add a new relationship to an existing post.
2) The relationship migration has just recently been run and all plugins are on the latest version.
3) The new "term" is created, but the relationship connection is not being made.
4) Adding this new "term" in the back end editor works, just not the front end.
5) This “term” added through the front end form saves with "CRED Auto Draft" as the title.
6) Deactivating most plugins does not solve this. Some plugins are required for the site to load (Advanced Custom Fields, all Toolset plugins).
Link to a page where the issue can be seen:
Front End: hidden link (public page) hidden link (main editing page) hidden link (term add page)
Backend: hidden link (term list, see Autodrafts) hidden link (another term list, more autodrafts)
I expected to see:
1) The new "term" added to the view displaying the relevant list of items on the front end.
2) The new "term" added to the list of items in the back end.
Instead, I got:
1) Term is being created with a CRED Auto Draft (hash) title.
2) Term relationship not created in the Database. If added via the backend directly (new term) or adding the newly created term from the front end (existing term) this relationship is created and the term links as expected.
Hello. Thank you for contacting the Toolset support.
Somehow - the admin access details you shared with your initial reply is not accessible.
Can you please send me admin access details and let me review your setup and after that I will be able to guide you in the right direction.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
When I checked the form I see there is no post title field added to the form:
- hidden link
I see in backend that the post title is set like "ew_expertise 39599" - that is the combination of post type slug and ID of the post. Do you want to keep the same pattern or you want to have the "expertise_title" that is input by user on the form?
It looks like that code snippet does create a title for the expertise, but when using the front-end form it still does not attach it correctly to the expert post_type. This appears to be the case for all of the forms on the front end (hidden link):
Expertise hidden link
Education hidden link
Video hidden link
Link hidden link
etc.
I'm less concerned about the title, more concerned with the new items not being linked to their parent when added.
As you may noticed: with the $relationship_slug - you will have to assign the original post relationship slug and parent ID is hold by the URL param "parent_ew_expert_id".
You can connect to other relationship as required.