From 2e72eea1835c8499c13ced9a445dfb2fe19c7de3 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 28 Dec 2015 16:31:12 -0500 Subject: [PATCH] added related products output --- views/product_detail.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/views/product_detail.php b/views/product_detail.php index 6fd7941..2e26b9f 100644 --- a/views/product_detail.php +++ b/views/product_detail.php @@ -33,6 +33,10 @@ foreach ($tags as $tag){ ?> foreach($key_value as $key=>$value){ echo $value; } + $key_value = get_post_custom_values('miproduct_related_products', $product->ID); + foreach($key_value as $key=>$value){ + echo $value; + } ?> -- 2.17.1