For the_content to work
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 17 Dec 2015 17:27:08 +0000 (12:27 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 17 Dec 2015 17:27:08 +0000 (12:27 -0500)
views/product_detail.php

index f5abca6..f838fa3 100644 (file)
@@ -1,3 +1,6 @@
 <h2><?php echo $product->post_title; ?></h2>
-    <?php echo $product->post_content; ?>
-  
+    <?php
+    setup_postdata( $product );
+    the_content();
+?>
+