• I’ve added the GTIN to hundreds of products but can’t find a way to add it to the Schema Markup.

    I’m concerned because this plugin appears to be abandoned by the developer.

    Is there any chance of this happening in the future?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You have to make a custom function to include GTIN in the schema.

    The plugin developer wrote this in another topic:

    Yes the main GTIN is in post meta under hwp_product_gtin:

    get_post_meta( $post_id, ‘hwp_product_gtin’, 1 );

    If you have variations with GTINs, you can find those in post meta like this:

    get_post_meta( $variation[‘variation_id’], ‘hwp_var_gtin’, 1 );

    You have to loop through the variations to get that.

    This can help you make the custom function.

    hello..
    can you give example to implement it in funtion.php?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add GTIN to Schema Markup’ is closed to new replies.