'Recent Posts', 'posts_number' => '5', 'order_by' => 'none', 'display_title' => 'true', 'display_date' => 'true', 'display_author' => 'true', 'display_content' => 'true', 'display_featured_image' => 'true', 'display_read_more' => 'true', 'content_type' => 'the_excerpt', 'excerpt_length' => '26', 'featured_image_width' => '90', 'featured_image_height' => '60', 'featured_image_align' => 'alignleft', 'filter' => 'recent', 'filter_cats' => '', 'filter_tags' => '' ); $theme->options['widgets_options']['posts'] = is_array($theme->options['widgets_options']['posts']) ? array_merge($themater_posts_defaults, $theme->options['widgets_options']['posts']) : $themater_posts_defaults; add_action('widgets_init', create_function('', 'return register_widget("ThematerPosts");')); class ThematerPosts extends WP_Widget { function __construct() { $widget_options = array('description' => __('Advanced widget for displaying the recent posts or posts from the selected categories or tags.', 'themater') ); $control_options = array( 'width' => 400); $this->WP_Widget('themater_posts', '» Posts with Images', $widget_options, $control_options); } function widget($args, $instance) { global $theme; extract( $args ); $title = apply_filters('widget_title', $instance['title']); ?> options['widgets_options']['posts'] ); ?>
Display Elements: value="true" /> Post Title
value="true" /> Date
value="true" /> Author
value="true" /> The Content / The Excerpt
value="true" /> Thumbnail
value="true" /> "Read More" Link
Content Type: value="the_content" /> The Content
value="the_excerpt" /> The Excerpt   words
Thumbnail: Width:   Height:   Float:
Filter: value="recent" /> Show Recent Posts

value="category" /> Show Posts from a sinle category:


value="cats" />
Category IDs ( e.g: 5,9,24 )


value="tags" />
Tag slugs ( e.g: computer,news,business-news )