Title: Populate programatically?
Last modified: August 1, 2017

---

# Populate programatically?

 *  Resolved [hectorsuper](https://wordpress.org/support/users/hectorsuper/)
 * (@hectorsuper)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/populate-programatically/)
 * Hello,
 * We have a custom post type, let’s call it “Widgets” – we have tens of thousands
   of them.
 * Each “widget” has a number of custom fields (through ACF) for example “speed,
   size, quality, etc”.
 * Is there a way either through the GUI or through hooks/actions to display a review
   based on that data?
 * Many thanks!

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

 *  Plugin Author [MyThemeShop](https://wordpress.org/support/users/mythemeshop/)
 * (@mythemeshop)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/populate-programatically/#post-9373012)
 * Hello,
 * WP Review provides a shortcode to display the review box. You can wrap it in 
   an if statement to see if it satisfies your conditions.
 *     ```
       <?php
       if ( $should_display_review ) {
           echo do_shortcode( '[wp-review]' );
       }
       ?>
       ```
   
 * If you want to populate the wp-review-related post meta, you can use the `get_post_metadata`
   filter. You can see the meta keys we’ve used in the wp_review_user_rating() function
   in includes/functions.php
 * Hope that helps.
 *  Thread Starter [hectorsuper](https://wordpress.org/support/users/hectorsuper/)
 * (@hectorsuper)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/populate-programatically/#post-9375344)
 * Thanks!

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

The topic ‘Populate programatically?’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [hectorsuper](https://wordpress.org/support/users/hectorsuper/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/populate-programatically/#post-9375344)
 * Status: resolved