WordPress.org

Ready to get started?Download WordPress

Forums

Simple Progress Bar with custom fields (1 post)

  1. comprido
    Member
    Posted 5 months ago #

    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

Reply

You must log in to post.

About this Topic