I should be able to accommodate that in the next release. Make it behave similar to the text widget.
Thanks! That would be great.
How can I change the order of my progress bars? I have 5 bars and I want them to show up in the order of the events which they relate to and right now they are showing up in the reverse order. I tried changing the order of the ids in the widget but it did not make a difference.
pamw: They should just be ordering by post date. There’s no way to adjust that right now, but I’ll add it as something to look into for the next release. https://github.com/tddewey/tdd-progress/issues/11
Hi there, is it possible to implement this great plugin with the crowdfunding plugin by Greg Priday? I want it to show the values from the input from a project made in that plugin automatic, = i dont want to add data in the “TDD Progress bars” Admin. If this is possible it would be great, then i can use just 1 progress bar and it would calculate the percentage from “Funded amount” and “My Wanted Amount”.
I’ve not used that plugin, but if it allows you to get a specific integer or count, you can set up one of my progress bars and then use the tdd_pb_calculated_percentage
filter to adjust the value as described in the FAQ.
I don’t plan on integrating native support for other plugins.
<?php
add_filter( 'tdd_pb_calculated_percentage', 'change_percentage', 10, 2 );
function change_percentage($percentage, $id){
//Only apply to post (bar) ID 120, if it isn't 120, just return
if ($id != 120)
return $percentage;
$newpercentage = $percentage_calculated_from_plugin
return $newpercentage;
}
?>