'post',
'numberposts' => 10,
'post_status' => 'publish',
'category' => $cat,
);
$recent_posts = wp_get_recent_posts( $args );
echo '
',
'
',
'
',
'
';
foreach( $recent_posts as $recent ){
$post_id = get_post_thumbnail_id( $recent["ID"] );
$post_img_full = wp_get_attachment_image_src($post_id, 'full', true);
if ( ! empty( $post_id ) ) {
echo '- ';
if ( $link == 'on' ) echo '';
echo '
';
if ( $link == 'on' ) echo '';
echo ' ';
}
}
echo '
',
'
',
'
',
'
';