'Core_recent_post_thumbs', 'description' => __('Display latest post with thumbnails, for post, pages or custom post types', 'recent-post-thumbs')); /* Widget control settings. */ $control_ops = array('id_base' => 'post-thumbs-widget'); /* Create the widget. */ $this->WP_Widget('recent-post-thumbs', __('Recent-Post-thumbs', 'core-wp'), $widget_ops, $control_ops); } function widget($args, $instance) { extract( $args ); $title = apply_filters('widget_title', $instance['title']); ?> '; ?> $rpthumb_qty, ); $rpthumb_posts = get_posts($q_args); foreach ( $rpthumb_posts as $post ) : setup_postdata($post); ?> '; the_post_thumbnail('recent-thumb'); echo ''; } ?> > >

/>