-
1. I have implemented the collection page schema to this page – https://wordsalley.com/random-generators/ by manually adding the code (provided by your support). I am sharing the schema code with you below. The collection page schema is showing but in a different way. Check out the schema for this page – https://namesshack.com/team-names/. It has a proper collection page schema. Image link – https://imgur.com/a/CpDw2LR
// Add Collectionpage Schema.
add_filter( ‘rank_math/json_ld’, function( $data, $jsonld ) {
global $post;
$imageThumb = RankMath\Helper::get_settings( “titles.open_graph_image” );
if($post->ID == 1357) {
$data[‘CollectionPage’] = [
‘@type’ => ‘CollectionPage’,
‘@id’ => get_the_permalink($post->ID) . ‘#webpage’,
‘url’ => get_the_permalink($post->ID),
‘name’ => get_the_title($post->ID),
‘inLanguage’ => ‘en-US’,
‘thumbnailUrl’ => $imageThumb //Or change to other prefered image
];
}
return $data;
}, 99, 2);2. I found that the schema implemented and og:type are completely different. Every page has this problem. I am sharing 4 random page screenshots. Image link – https://imgur.com/a/qiXbHYN
The ticket ‘Schema Issues’ is closed to new replies.