[OFFER ALERT!] This Halloween, Get Any Premium Theme for Just $19 [GET IT NOW]
Jump to content

[WP Review Pro] [Wp-Review] Wp Review Pro


pericles779
 Share

Recommended Posts

Hi, at the moment I have just installed the free version of wp review.

 

I want to place the review below the feature image.

 

In order to do that I have added the shortcode [wp-review] inside the theme function of my theme.

 

add_action( 'woocommerce_product_thumbnails' , 'add_below_featured_image', 9 );

function add_below_featured_image() {
   
      echo '<br> [wp-review] ';
 
}
 
but at the page it displays the  [wp-review] text and not the review of your plugin. if i put the  [wp-review] inside the content of the product your plugin is working fine. 
 
Question. If I buy the PRO version will the review be displayed with no problem below the feature image?
 
thank you in advance
 
Peri
Link to comment
Share on other sites

  • Support

Hello,

 

To display that shortcode below your featured image, open your template file of your theme where the featured image is shown.

Then below that insert this : 

<?php echo do_shortcode("[wp-review]"); ?>

That should do the trick.

 

Or instead of your code try inserting this one:

add_action( 'woocommerce_product_thumbnails' , 'add_below_featured_image', 9 );
function add_below_featured_image() {
   
      echo do_shortcode("[wp-review]");


}

I that fails: Please share your WordPress login details in the "Sensitive Data" section by editing your first post on this thread and following instructions as shown in the screenshot below and we will take a look:

 
Looking forward to help you. Thank you. 

🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...