Hi Christian,
Luo responded on the "other" ticket https://toolset.com/forums/topic/connect-post-type-employee-fields-and-post-type-specialisme/#post-1138229 he has other approach.
And yes, to use the taxonomy will get me other problems because you are right employees have one role, but i use more costume fields where the are more different "roles" that i must use in the project later so use taxonomy is not a good option.
"Okay let's discuss your example" think that you are not right. As for example employee has now status A and tomorrow he is B. In my approach it means that i change the custom field to A to B in it will show in the post the new setup.
If i use the "relation" post it means i have to go 1 by 1 and change it. And on each employee i just choose the role in mine opinion.
Like i said in my previous post, the idea in one sentence is, Show related employees in a post (from a different posttype) based on custom field. In other words the custom field is shown in both custom post type.
Luo suggests the following
"If it is, it is possible, for example:
in a single "custom-post-type" post, you can get it's "vakgebieden Olenz" field value with Types shortcode:
[types field='vakgebieden-olenz' separator=', '][/types]
pass it as shortcode attribute of below view, for example:
1) Create a post view, query "Employees" posts, filter by:
Select items with field:
vakgebieden Olenz is a string in VIEW_PARAM(vo)
see screenshot checkboxes-filter.JPG
2) In the single "custom-post-type" post, display above view's shortcode like this:
[wpv-view name="connect-post-type" vo='[types field='vakgebieden-olenz' separator=', '][/types]']"
I did the steps but still shows all employees. (see images) normally only 2 have the correct field option.
Tried now for few hours but still not what I expected. Hope you can open the right door for me and show the related employees.
Cheers
Marcel