Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/03/2012, 11:04
Piquinikis
 
Fecha de Ingreso: agosto-2010
Mensajes: 15
Antigüedad: 13 años, 9 meses
Puntos: 1
Respuesta: problema con post type

Solucionado ...

Código:
<ul>
<?php
	global $post;
       $args = array( 'numberposts' => 5, 'post_type' => 'cortitas' );
	$myposts = get_posts( $args );
       foreach( $myposts as $post ) :	setup_postdata($post); ?>
	<li>				
		<h3><?php the_title();?></h3><br />
	        <p><?php echo limit_words(get_the_excerpt(), '55') ;?></p>
		<div class="more"><a href="<?php the_permalink();?>">Ver m&aacute;s</a></div>
	</li>
	<?php endforeach; ?>	
</ul>
Aqui estaaba la solucion http://codex.wordpress.org/Template_Tags/get_posts
Perdon por las molestias estaba desesperado :P