WordPress.org

Support

Support » Plugins and Hacks » Simple Progress Bar with custom fields

Simple Progress Bar with custom fields

  • Credit for: http://honorless.net/progressbar.htm

    // Progress-bar through custom field progress-bar
    <?php $values = get_post_custom_values(“progress-bar”);
    if (isset($values[0])) {
    $values = get_post_custom_values(“progress-bar”);
    echo ‘<div style=”margin: auto; text-align: center; width: 120px;” title=”120px”><div style=”text-align: left; margin: 2px auto; font-size: 0px; line-height: 0px; border: solid 1px #000000; background: #AE12DD; overflow: hidden; “><div style=”font-size: 0px; line-height: 0px; height: 15px; min-width: 0%; max-width: ‘.$values[0].’; width: ‘.$values[0].’; background: #E3A2EB; “><!—-></div></div><div style=”font-size: 8pt; font-family: sans-serif; “>’.$values[0].'</div></div>’;
    } ?>

    http://imageshack.com/a/img203/6082/wn2k.png

  • The topic ‘Simple Progress Bar with custom fields’ is closed to new replies.