'Display latest blog post with thumbnail' ); $control_ops = array('id_base' => 'abc_posts_widget'); parent::__construct( false, $name='ABC: Latest Post', $widget_ops, $control_ops ); } function widget($args, $instance) { extract($args); $title = $instance['title']; $post_type = 'all'; $categories = $instance['categories']; $posts = $instance['posts']; $images = true; echo $before_widget; ?> '; echo $title; echo ''; echo $after_title; } ?>
$posts,'post_type' => 'post' ,'cat' => $categories,)); ?> have_posts()): $recent_posts->the_post(); ?>
'')); ?>

'Latest Post', 'post_type' => 'all', 'categories' => 'all', 'posts' => 5); $instance = wp_parse_args((array) $instance, $defaults); ?>