[cusrev_all_reviews] with current product id
-
I am trying to use the shortcode [cusrev_all_reviews] for the current product. Ex [cusrev_all_reviews products = “410”]. But I try to do it by storing the current post id in a variable and putting it inside the shortcode, but it doesn’t work for me. This is the code I am using.
<?php global $product; $id = $product->get_id(); echo do_shortcode('[cusrev_all_reviews products="$id"]'); ?>
- The topic ‘[cusrev_all_reviews] with current product id’ is closed to new replies.