Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/11/2012, 07:26
Avatar de nezu
nezu
 
Fecha de Ingreso: junio-2007
Mensajes: 177
Antigüedad: 16 años, 10 meses
Puntos: 0
Pregunta Wordpress: una duda básica

Hola. estoy trabajando en un theme de videos con el plugin Simple Video Embedder
lo que no estoy logrando es que en el index me muestre todos los post con el video correspondiente. Solo me muestra el último publicado.

Este es el codigo:

Código:
<?php

get_header(); ?>

<?php

	$id = get_the_ID();
	if( p75HasVideo($id) ) {
		$css = 'video';
	} else {
		$css = 'content';
	}
?>
	<div class="entry-<?php echo($css); ?>">
<?php

		if( $css == 'video' ) {
			$video = p75GetVideo($id);
?>
			<!-- Video embebido desde Youtube -->
			<div class="video_h">
<?php
				echo($video); 
?>
			</div><!-- .video_h -->
<?php
		}
?>



		<div id="primary">
			<div id="content" role="main">

			<?php if (have_posts()) : ?>
			
			  <?php if (($wp_query->post_count) > 1) : ?>
			  
				 <?php while (have_posts()) : the_post(); ?>
				   <!-- Do your post header stuff here for single post-->
					 <?php get_posts('showposts=20');  ?>
					  <?php the_content() ?>
					  
					  
				   <!-- Do your post footer stuff here for single post-->
				 <?php endwhile; ?>
			
			  <?php endif; ?>
			
			<?php else : ?>
				 <!-- Stuff to do if there are no posts-->
			
			<?php endif; ?>

			</div><!-- #content -->
		</div><!-- #primary -->

<?php get_footer(); ?>
cualquier ayuda, sera bienvenida. Gracias.
Suerte.