-
Hi there,
I have installed plugin “Product GTIN (EAN, UPC, ISBN) for WooCommerce” as I have read in many of the suggestions here on the help forums.I have used ‘MPN’ for the “Label of GTIN Code” within the plugin settings.
I tried to add something along the lines of this to the functions.php:add_filter( “rank_math/snippet/rich_snippet_product_entity”, function( $entity ) {
$entity[‘mpn’] = get_post_meta( $post->ID, ‘_wpm_gtin_code’);
return $entity;
});
?>I have tried to change ‘_wpm_gtin_code’ to ‘mpn’, ‘_mpn’ etc to no avail. It is still not showing up in google rich results test.
Can you please assist?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this ticket.