-
I’m trying to add the sameAs filter on the Organization data with the code below.
add_filter('rank_math/json_ld', function( $data, $jsonld ) {
$currentSameAs = $data['Organization']['sameAs'];
$currentSameAs[] = "https://www.instagram.com/aaaaaa";
$currentSameAs[] = "https://www.facebook.com/aaaaaa";
$currentSameAs[] = "https://www.linkedin.com/company/aaaaaaa";
$data['Organization']['sameAs'] = $currentSameAs;
return $data;}, 10, 2);
It appears, however outside the organization keys, not validating in the Google test
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The ticket ‘sameAs Schema Markup’ is closed to new replies.