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:
cualquier ayuda, sera bienvenida. Gracias.<?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(); ?>
Suerte.


