Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter tomeque7

    (@tomeque7)

    Ok I found solution. Maybe it could be helpfull for anyone.

    Here’s simple example inside the loop.

    <?php
    $value = get_post_meta( get_the_ID(), ‘ratings_users’, true );
    $width_t2 = $value;
    $width_percent = $value*10;
    $style_t1 = ‘width: ‘ . $width_t2. ‘%; height:50px;clear:both;background:#333;float:left;margin:0 0 20px 0’;

    ?>

    <div style=”<?php echo $style_t1; ?>”><span style=”color:#fff”><?php echo $width_percent?>%</span></div>

Viewing 1 replies (of 1 total)