Cornerstone Statbar with custom field

Hello dear Forum & Support,

I wanted to display a Statbar and the actual Percentage Value will come from a custom field that I am writing to the WP DB via a plugin.

This is how my Statbar setting looks like:

Here the entered Value:
{{dc:post:meta key="_hos_user_rating_percent"}}%

On the frontend the Value (in my example eg. 90) is correct, but the displayed “graph” is incorrect:

What am I doing wrong? Would be great if you can help me out.

Thanks + BR
Max

Hello Max,

Thanks for writing in! I was able to replicate the issue on my local testing. I believe that this is a bug in the Statbar element. I will inform our developers about this so a fix can be added in the next release update.

Please bear with us.

Ah cool, thanks for replicating and finding the problem.
I’ll try to be patient :slight_smile:

Hi Max,

You are most welcome.

Via Twig you can add the following. You can also add the “%” to your post meta to get around this issue. Have a great day.

{{ post.meta({"key":"length"}) ~ "%" }}