2

I'm using easydigitaldownloads to sell digital products. I combine it with WP Customer Reviews to show product reviews.

I need to use an IF statement to display the reviews. So I used print_r($post) to see how many reviews the download has but I couldn't see it in the post object.

How do I access the reviews or how do I display it with a conditional function?

If(reviews){
show specific download reviews
} else {
show generic reviews from other downloads
}

Thanks a lot!

Krupal Panchal
  • 1,553
  • 2
  • 13
  • 26
idomskt
  • 47
  • 1
  • 6
  • Showing so-called "generic reviews" looks pretty misleading from a user's point a view... – bernie Jan 02 '19 at 08:33
  • 1
    I'm planning on writing something like: 'There are no reviews yet to this product but here are reviews from other products' – idomskt Jan 02 '19 at 21:37

0 Answers0