title: Show price in Woocommerce product custom loop
body: <p>I'm using Woocommerce Bookings with only a base cost filled. No other rules. How do I display product price in a loop like this?</p>
  
  <pre><code>&lt;?php
  $args = array( 'post_type' =&gt; 'product', 'posts_per_page' =&gt; -1 );
  $loop = new WP_Query( $args );
  
  &lt;?php while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post(); ?&gt;
  ID is: &lt;?php the_ID(); ?&gt;
  Title is: &lt;?php the_title(); ?&gt;
  Price: &lt;?php echo esc_html( get_post_meta( get_the_ID(), '_regular_price', true ) ); ?&gt;
  
  &lt;?php endwhile; wp_reset_query(); ?&gt;
  </code></pre>
  
  <p>The price field didn't show anything</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>another code I tried:</p>
  
  <pre><code>&lt;?php
  global $woocommerce;
  $product = new WC_Product_Booking($productID);
  $base_price = $product-&gt;get_price();
  $product_data = $product-&gt;get_data();
  $product_pricing = get_post_meta( $product_id, '_wc_booking_pricing', true);
  ?&gt;
  
  &lt;?php echo $product_pricing; ?&gt; 
  &lt;?php echo $base_price;?&gt;
  </code></pre>
  
  <p>both also return the value of zero</p>
  
  <p><strong>ANOTHER TRY</strong></p>
  
  <pre><code>&lt;?php
  global $woocommerce;
  $product = new WC_Product_Booking($productID);
  $product = wc_get_product( $product_id );
  
  $base_price = $product-&gt;get_price();
  $product_data = $product-&gt;get_data();
  
  $product_pricing = $product_data['pricing'];
  foreach($product_pricing as $key =&gt; $princing ){
     $pricing_type           = $princing['type'];
     $pricing_base_cost      = $princing['base_cost'];
     $pricing_base_modifier  = $princing['base_modifier'];
     $pricing_cost           = $princing['cost']; 
     $pricing_modifier       = $princing['modifier'];
     $pricing_from           = $princing['from'];
     $pricing_to             = $princing['to'];
  }
  
  $pricing_data = get_post_meta( $product_id, '_wc_booking_pricing', false); ?&gt;
  
  &lt;?php echo $pricing_data; ?&gt;
  </code></pre>
  
  <p>nothing works :( they're all either showing blanks or showing zero.
  Can anyone help point in the right direction?</p>
  
  <p>many thanks</p>