codigo para mostrar ultimos post, wordpress

codigo para mostrar ultimos post, wordpress


Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /nfs/c01/h06/mnt/3243/domains/brainsoup.cl/html/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 524

<ul>
<?php $the_query = new WP_Query( ‘showposts=5’ ); ?>

<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<li><a href=”<?php the_permalink() ?>”><?php the_title(); ?></a></li>

<li><?php the_excerpt(__(‘(more…)’)); ?></li>
<?php endwhile;?>
</ul>