How to display product price of the product in loop

I sorted this out, $post should be $p in:

global $post;
$product = new WC_Product( $post->ID );

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)