Skip to content

Instantly share code, notes, and snippets.

@mookman288
Last active June 22, 2016 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mookman288/52132c7a5e73a4d0e317e4e14fcc573a to your computer and use it in GitHub Desktop.
Save mookman288/52132c7a5e73a4d0e317e4e14fcc573a to your computer and use it in GitHub Desktop.
Creating a progress bar demonstration
<?php
$value = get_post_meta($post_id, 'progress_value', true);
?>
<div class="progress-bar">
<div class="inner-progress-bar" style="width: <?php print(round(100 - ($value * (100 / 7)), 1)); ?>%;"></div>
</div>
@mookman288
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment