Title: Issues Getting Shortcode to Work for Posts
Last modified: May 16, 2024

---

# Issues Getting Shortcode to Work for Posts

 *  Resolved [dstro003](https://wordpress.org/support/users/dstro003/)
 * (@dstro003)
 * [2 years ago](https://wordpress.org/support/topic/issues-getting-shortcode-to-work-for-posts/)
 * I am trying to display the average star rating for a post on a post grid.
 * I am using the grid plugin, content views, to show posts on a category page.
 * [Here is the page with the grid of posts](https://soundshockaudio.com/testing-grid/)
 * I am using the shortcode, [site_reviews_summary] for each post.
 * To get the shorcode into the post grid plugin, I had to create a custom field
   with a shortcode in it and then have that shortcode executed in the setup of 
   the grid of posts in the content views plugin
 * ![](https://i0.wp.com/i.imgur.com/GazETPX.png?ssl=1)
 * ![](https://i0.wp.com/i.imgur.com/OeVRUaa.png?ssl=1)
 * However, the star reviews show the same star rating of 4 1/2 stars for all of
   the posts. Not all the posts have the same average star rating. So it seems like
   it is not updating correctly.
 * If you look at the individual posts, the avg. star rating is not 4 1/2.
 * ![](https://i0.wp.com/i.imgur.com/lUOcpkU.png?ssl=1)
 * I also tried using the [site_review] shortcode, but nothing showed up when I 
   added this.
 * Any help sorting through this would be appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fissues-getting-shortcode-to-work-for-posts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Gemini Labs](https://wordpress.org/support/users/geminilabs/)
 * (@geminilabs)
 * [2 years ago](https://wordpress.org/support/topic/issues-getting-shortcode-to-work-for-posts/#post-17767959)
 * You probably need to use the **assigned_posts** option in the shortcode. See 
   the Site Reviews > Help & Support > Shortcodes page for the documentation.
 *  Thread Starter [dstro003](https://wordpress.org/support/users/dstro003/)
 * (@dstro003)
 * [2 years ago](https://wordpress.org/support/topic/issues-getting-shortcode-to-work-for-posts/#post-17769151)
 * Thank you for your reply. Adding the post id with the assigned_posts worked!
 * Thank you

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

The topic ‘Issues Getting Shortcode to Work for Posts’ is closed to new replies.

 * ![](https://ps.w.org/site-reviews/assets/icon-256x256.gif?rev=3307009)
 * [Site Reviews](https://wordpress.org/plugins/site-reviews/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/site-reviews/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/site-reviews/)
 * [Active Topics](https://wordpress.org/support/plugin/site-reviews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/site-reviews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/site-reviews/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dstro003](https://wordpress.org/support/users/dstro003/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/issues-getting-shortcode-to-work-for-posts/#post-17769151)
 * Status: resolved