Latest Post

How To convert Number to icon in wordpress

How To convert Number to icon in wordpress


How To convert Number to icon in wordpress


This code use for convert Number to icon in wordpress.


<th class="rating-box"><?=$meta['rating'][0];?>
<?php
if($rating!="" OR $rating!=0){
for($i=1;$i<=$rating;$i++){
?>
<i class="fa fa-star" aria-hidden="true"></i>
<?php
}
if($rating!=5){
?>
<i class="fa fa-star-half-o" aria-hidden="true"></i>
<?php
}
}
?>
</th>

No comments