'AcerPages', 'description' => 'Display Pages with thumbnails on your site.' ); $this->WP_Widget('AcerPages', 'Acer - Pages', $widget_ops); } function form($instance) { $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); $title = $instance['title']; $num = $instance['num']; $thumb = $instance['thumb']; $pages = $instance['pages']; ?>
Use the field above to specify what page are show ( use page ID and separate with , ) or leave it empty to show the recently added pages. $num, 'orderby' => 'date', 'order' => 'DESC', 'offset' => 0, 'post_type' => 'page', 'post__in' => $pages ) ); if (have_posts()) : echo "