Last active
June 22, 2016 22:07
-
-
Save mookman288/52132c7a5e73a4d0e317e4e14fcc573a to your computer and use it in GitHub Desktop.
Creating a progress bar demonstration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.reddit.com/r/CodingHelp/comments/4pc77e/csswordpress/