...
WooCommerce, Wordpress

How to get price in custom loop Woocommerce?

14 March 2019

Here, I would like to show you how to get price in custom loop Woocommerce?

If you are working any woocommerce custom template file and you have to require print the price of the products so, you can easily get from the below code.

$price = get_post_meta( get_the_ID(), '_regular_price', true);
$sale = get_post_meta( get_the_ID(), '_sale_price', true);

Leave a Comments