Return to Snippet

Revision: 50361
at August 18, 2011 22:21 by psteinweber


Initial Code
<h3><a href="<?php bloginfo( 'url' ); ?>/blog/">Neues aus dem Sonnenprojekt</a></h3>

<ul>
<?php
global $post;
$args = array( 'numberposts' => 5 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) :	setup_postdata($post); ?>
	<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>

Initial URL

                                

Initial Description

                                

Initial Title
Wordpress: Recent Posts Widget

Initial Tags
wordpress

Initial Language
PHP