You don’t need to copy the fields, you just need to use the Schema Generator to pull Title and Description from Yoast SEO post meta.
Please, follow the steps mentioned here.
Or you can use this filter in your Theme’s functions.php file:
add_filter( 'schema_output', 'schema_wp_override_description_yoast_seo_5636346455' );
/*
* Pull Schema Title and Description values from Yoast SEO
*/
function schema_wp_override_description_yoast_seo_5636346455( $schema_output ) {
// get Title (Headline) value from Yoast SEO post meta
$headline = get_post_meta( get_the_ID(), '_yoast_wpseo_title', true);
// get Description value from Yoast SEO post meta
$desc = get_post_meta( get_the_ID(), '_yoast_wpseo_metadesc', true);
// override the values in schema output
$schema_output["headline"] = $headline;
$schema_output["description"] = $desc;
// return our schema array
return $schema_output;
}
Thank you very much for your quick response.