id_base);
echo $before_widget;
echo $before_title;
echo $title;
echo $after_title;
echo "
';
echo "";
if ($show_thumb) {
echo "";
$this->display_posts_thumbnails($get_post->ID, $thumb_size);
echo '
';
}
if ($display_date) {
echo $get_post->post_date;
}
if ($show_excerpt) {
echo $this->excerpt_length($get_post->post_content, $post_excerpt) . " " . $read_more . "";
} else {
echo "" . $get_post->post_content . "
";
}
echo '';
}
}
public function display_information_from_posts($number_of_posts, $show_thumb, $thumb_size, $display_date, $post_excerpt, $show_excerpt) {
$tax_query_array = '';
if (!empty($content)) {
$tax_query_array = array(
array(
'taxonomy' => 'last-posts-tax',
'field' => 'slug',
'terms' => $content
)
);
}
$args = array(
'post_type' => '',
'showposts' => $number_of_posts,
'tax_query' => $tax_query_array,
'orderby' => 'title',
'order' => "$order"
);
$get_all_posts = get_posts($args);
foreach ($get_all_posts as $get_post) {
echo '