Title: Integration in Theme
Last modified: December 3, 2016

---

# Integration in Theme

 *  Resolved [baracoda](https://wordpress.org/support/users/baracoda/)
 * (@baracoda)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/integration-in-theme/)
 * hello !
    i want to integrate wp review in my theme so i can show it in a custom
   position. can you provide the right function ?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [MyThemeShop](https://wordpress.org/support/users/mythemeshop/)
 * (@mythemeshop)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/integration-in-theme/#post-8524697)
 * Hello,
 * Sorry for the late reply.
 * If you want to show review box on single post in custom place, please try to 
   use this:
 * `echo wp_review_get_data();`
 * Hope that helps.
 * Thank you.
    -  This reply was modified 9 years, 6 months ago by [MyThemeShop](https://wordpress.org/support/users/mythemeshop/).
 *  [creativewordpress](https://wordpress.org/support/users/creativewordpress/)
 * (@creativewordpress)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/integration-in-theme/#post-8617070)
 * Hi, I want to integrate WP review in my theme custom position using `[wp-review
   id]`
    but I want it with some logic like this, because If I set it “No Review”
 * <?php
    $post_id = get_the_ID(); if(isset( **Which function/parameter should I
   use here?** )){ echo do_shortcode(“[wp-review id=\”{$post_id}\”]”); } else{ echo“
   No reviews available”; } ?>
    -  This reply was modified 9 years, 5 months ago by [creativewordpress](https://wordpress.org/support/users/creativewordpress/).
 *  Plugin Author [MyThemeShop](https://wordpress.org/support/users/mythemeshop/)
 * (@mythemeshop)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/integration-in-theme/#post-8617679)
 * Hello,
 * You could use `wp_review_get_post_review_type( $post_id )`:
 *     ```
       <?php
       $post_id = get_the_ID();
       if ( ! empty( wp_review_get_post_review_type( $post_id ) ) {
           echo do_shortcode('[wp-review id="' . $post_id . '"]');
       } else {
           echo 'No reviews available.';
       }
       ```
   
    -  This reply was modified 9 years, 5 months ago by [MyThemeShop](https://wordpress.org/support/users/mythemeshop/).
 *  [creativewordpress](https://wordpress.org/support/users/creativewordpress/)
 * (@creativewordpress)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/integration-in-theme/#post-8618197)
 * Thanks a lot 🙂
    It’s working. One closing parenthesis is missing on code. It
   should be –
 *     ```
       <?php
       $post_id = get_the_ID();
       if ( ! empty( wp_review_get_post_review_type( $post_id ) ) ) {
           echo do_shortcode('[wp-review id="' . $post_id . '"]');
       } else {
           echo 'No reviews available.';
       }
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Integration in Theme’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-review_e57c82.svg)
 * [WordPress Review Plugin: The Ultimate Solution for Building a Review Website](https://wordpress.org/plugins/wp-review/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-review/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-review/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-review/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-review/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-review/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [creativewordpress](https://wordpress.org/support/users/creativewordpress/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/integration-in-theme/#post-8618197)
 * Status: resolved