Customer wants that the address of the parent CPT aktivitaten get copied into the address field of the child CPT bewertung.
He saw an example using _wpcf_belongs_ but it is not working.
Solution:
Since Types version 3.x the usage of _wpcf_belongs_{parent-post-type-slug}_id has been discontinued. Now you need to use toolset_get_related_post when there can be only one result, e.g. you are starting with the ID of a child post and you want to get its parent (there can be only one parent, for a given relationship).
Or, you would use toolset_get_related_posts when there could be multiple results, e.g. you are starting with the ID of a parent post and you want to get all of the IDs of all of the child posts for some relationship.
Problem:
I am trying to view the map on m, y website, generated by the WP Maps Pro plugin. Since the plugin upgrade, the map appears after a long list of errors, specifically:
Warning: Attempt to read property "post_type" on int in /wp-content/plugins/toolset-blocks/application/controllers/compatibility/wpa-block-editor/wpa-block-editor.php on line 220
Solution:
The issue seems related to compatibility between Flippercode's "WP_Query" plugin and Toolset Blocks. Downgrading the Flippercode plugin resolves the problem. Flippercode addressed it by optimizing wp-query time, fetching only the post_id.