Add data to chart from custom post types metadata
-
Hi, I have a type of custom post, called “valoraciones” in which I have custom fields added. I’m trying to use a custom field for score data in a gauge chart and I can’t figure out how to do it.
This is the data that you would have to use as a “score”:
$score_calidad_muscular = get_post_meta( get_the_ID(), 'calidad_muscular', true );And what occurred to me so far would be to do the following:
[amcharts id="pie-1" data-score="$score_calidad_muscular"]Any help or an example to base myself on.
Thank you very much in advance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Add data to chart from custom post types metadata’ is closed to new replies.