Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Renders the actual widget
- *
- * @param array $args
- * @param type $instance
- */
- public function widget($args, $instance)
- {
- extract($args, EXTR_SKIP);
- echo $before_widget;
- echo '<div class="your-class" style="height:500px; overflow:auto;"><!--My custom html code goes here!-->';
- echo $instance['code'];
- echo '<br \>';
- while (have_posts()): the_post();
- $cool = get_field('author_or_brand');
- echo $cool . '<br \>';
- $count++;
- endwhile;
- echo $count;
- echo '</div>';
- echo $after_widget;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement