The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Simple Progress Bar with custom fields (1 post)

  1. comprido
    Posted 2 years 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>';
    } ?>


Topic Closed

This topic has been closed to new replies.

About this Topic