There is a topic named exactly like this one, that you can find here - https://toolset.com/forums/topic/types-and-yoast-seo-parent-unexpectedly-overwrites-child-seo-data/ - , unfortunately there is not a public solution.
I am experiencing the same exact problem of parent type is overwriting children SEO data when doing some change on meta description p.e.
Any ideas how to solve this?
Thanks
Hi ivoP,
Are you using WPML plugin in your website?
The thread you mentioned above is resolved by update WPML plugin.
If not, please post a downloadable URL for the Yoast SEO plugin, and describe detail steps to duplicate same problem in a fresh wordpress installation. I need debug it in my localhost. thanks
Hello,
I am using last version (I guess) - 3.1.5.
Let's imagine I have a post-type named animal-type and a child post-type named animal.
I create some posts (with post-type: animal) with his parent on an post (with post-type: animal-type). After that I change the meta description (using Yoast SEO) on the child posts I've just created.
Then, I "realize" that I've been mistaken and I've filled up the wrong meta description for animal-type post. Therefore I go changing the meta description of animal-type.
Unexpectedly, all the child posts of the animal-type I've changed, had their meta changed too.
The link for Yoast SEO plugin: hidden link
Thanks.
Thanks for the details, I have been able to duplicate same problem in my localhost,
Please try this:
edit the file \wp-content\plugins\wordpress-seo\admin\class-metabox.php
line 683, please it from :
if ( $post_id === null) {
To:
if ( $post_id === null || $post_id != get_the_ID()) {