Migration made easy: How to copy a WordPress website to a new server but continue using the same URL
Basically WordPress migration it is not that easy as stated in the official WordPress guide.…
I struggled a lot but finally found out how create a [cred-relationship-form-link] that links to an unspecified (not attached to any post type) content template that contains a relationship form.
At first you need to create the content type you want to be a child of another prior created content type. Of course you also need a parent, whether it be an existing or another newsly created one.
Then you need to create a “one to many realtionship” connecting your new child post type (one) to “many” parent post types.
Afterwards you need to create a post form to create a post of the new child post type. And here is the deal:
When reating the child post form you can insert a field that creates a select box to select the parent post. Here you simply need to add a value that preselects the parent:
[cred_field firstname.lastname@example.org' class='form-control' output='bootstrap' select_text='--- nicht eingestellt ---' value='[wpv-post-id id="$current_page"]']
Then you have to create an unspecified content template that contains the shortcode to the (CRED) form to create the new child post type.
After this you simply need to edit the view where you want to place the link that opens the content template with the child post creation form where the parent from the view loop is preselected.[cred-relationship-form-link form=’add-a-review-to-a-an-pattern’ parent_item=’$current’ content_template_slug=’mentoring_template’]Eine andere Review verbinden[/cred-relationship-form-link]
I have found the solution in the toolset forums: https://toolset.com/forums/topic/set-automatically-parent-child-relationship-in-reviewing-system/