Schema brand
-
Hello I use this snippet with WCFM to get store name for brand on schema.org
The problem is that in schema markup test tool it says the type is “thing” (invalid object type for field brand) Can I do something about it.
Thank you for this great plugin I use it for short time but starting loving it.// Use vendor store name for brand if using RankMath SEO.
add_filter( ‘rank_math/snippet/rich_snippet_product_entity’, function( $entity ) {
global $post;
if(wcfm_is_vendor($post->post_author)) {
$vendor_id = apply_filters(‘wcfm_current_vendor_id’, $post->post_author);
$shop_name = wcfm_get_vendor_store_name( $vendor_id );
$entity[‘brand’] = $shop_name;
}
return $entity;
});
- The topic ‘Schema brand’ is closed to new replies.