PHP – Using ProgPress Thermometer with a global custom field value
-
I’m using the ProgPress thermometer plugin for a fundraising site. In my header, I have the following PHP code to include the thermometer on the page:
<?php if (function_exists('jcp_progpress_generate_meter')){ echo jcp_progpress_generate_meter("title", 40000, 0, 0, "label"); }?>
In the function, the third value (the ‘0’ after 40000) is defined as $current (the current value). So 40,000 is the objective, 0 is the value raised thus far. All works as it should if I update this value in the php code. But, my client would like to update it themselves in the WP admin area.
Is there a way to use a global custom field to define this value in a way the client can update themselves? I know this involves some PHP, which unfortunately I don’t know well.
To see the thermometer style, please see:
http://www.watercan.com/25/champions/Thank you!
- The topic ‘PHP – Using ProgPress Thermometer with a global custom field value’ is closed to new replies.