Tengo un pequeño dilema que no puedo resolver. Quiero mostrar posts relacionados en una seccion de mi blog.
El código que tengo es el siguiente:
Lo que quiero es que en lugar de mostrar los posts recientes (es lo que hace ese codigo), me muestre posts relacionados.Código:<div class="featured"> <h2>Relacionados</h2> <div style="padding:15px 0 15px 20px;"> <?php $recent = new WP_Query("cat=-<? echo $wt_featured; ?>&showposts=8"); while($recent->have_posts()) : $recent->the_post();?> <div class="videopart"> <div class="thumbnail"> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "thumb", true); ?>" width="120" height="90" alt="<?php the_title(); ?>" /></a> </div> <div class="fpost"> <h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3> <p><?php if(function_exists('the_views')) { the_views(); } ?></p> <p><?php if(function_exists('the_ratings')) { the_ratings(); } ?></p> </div> </div> <?php endwhile; ?> </div> </div>
Desde ya agradezco su ayuda![]()


2Me agrada
LinkBack URL
Acerca de LinkBacks









