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.
PHP warnings are not breaking errors. If you use PHP 8.1+ you'd better hide the warnings by adding the command below to wp-content.php file of your WordPress installation.
Upon updating PHP to version 8, Toolset Types and Layouts cause a site crash, generating fatal errors like: "Uncaught TypeError: Cannot access offset of type string on string."
Solution:
Identified database corruptions causing errors in loading Layouts. To resolve, delete specific options from the options table: