Pokaż Twój Kod v.0.1

	function recentposts($atts, $content = null) {
        extract(shortcode_atts(array(
                "num" => '5',
                "cat" => ''
        ), $atts));
        global $post;
        $myposts = get_posts('numberposts='.$num.'&offset=0');
  foreach($myposts as $post) : 
        setup_postdata($post);
        echo "<li class=\"list-item fix\">\n";
        if(has_post_thumbnail()):
        the_post_thumbnail(array( 45, 45 ),array( 'class' => 'list_thumb list-thumb' ));
        else:
echo "<img class=\"list_thumb list-thumb\" src=\"http://www.pagelines.com/images/pagelines-65x65.jpg\" width=\"55\" height=\"55\" class=\"sidebar_thumb\" />\n";
		endif;
echo "<div class=\"list_item_text\">\n";
echo '<a class="list_text_link" href="';the_permalink(); echo '"'; 
echo ' <span class="list-title">';
echo $post->post_title;
echo '</span></a>';

echo '<small><p><span class="list-describe">';
the_time(get_option('date_format'));
echo ' | Komentarze (<a href="';the_permalink();echo "#idc-container\" title=\"\n";_e('Przejdź do komentarzy', TDOMAIN);echo'">';comments_number(0, 1, '%');
echo '</a>)</span></p></small></div></li>';

endforeach;

}
add_shortcode("recent", "recentposts"); 
Polish Teacher in London Sternik motorowodny Żeglarz jachtowy