Hi,
I’m experiencing an issue with the new Rating element.
Through the Dynamic Content button, I’ve set a post-meta value for the star value. The rating element does nothing with it and shows just 0 stars out of 5.
For testing, I’ve used the same post-meta in a text-element: that value shows!
Digging into the code I found that the rating element is capable of handeling post-meta, with is always a string. In rating.php inside the conernerstone/include/views/partials folder on line 21 any string is converted to a float value ($rating_value_float = floatval( $rating_value_content ). Therefore the post-meta format itself could not be the issue.
I can’t seem to find out were the real cause of this issue lies. Any thoughts?
Settings of the text-element:
Settings of the rating-element:
Output: