Home Forums Plugins Add Product SKU [Resolved] SKU Functionality for Exchange Reply To: [Resolved] SKU Functionality for Exchange

Michael Visser

Hi MBaker, there isn’t a shortcode or template tag in the current release of Add Product SKU but you can grab the SKU at any time using the WordPress template function get_post_meta() to grab the Post meta key ‘_it-exchange-product-sku’.

Here’s a sample:

< ?php echo get_post_meta( $post_id, '_it-exchange-product-sku', true ); ?>

(replace $post_id with the Post ID whether that is $post->ID or a specific Post ID)