Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $i = 0;
- while ($rows < get_option('voteiu_widgetcount')) {
- if ($a[0][$i][0] != '') {
- $postdat = get_post($a[0][$i][0]);
- if (!empty($postdat)) {
- $rows++;
- $postdat = get_post($a[0][$i][0]);
- echo '<h3 class="accord"><div class="topbttn">'.'test'.'<div class="accsubtitle"><em>votes: '.$a[1][$i][0].'</em></div></div></h3><div id="collapse"><div class="toptwtbx">'.$postdat->post_title.'</div></div>';
- }
- }
- if ($i < count($a[0])) {
- $i++;
- } else {
- break; //exit the loop
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement