K
Kakkonen
Para quienes no quieran instalar plugin, aqui les dejo un codigo php para que lo peguen en single.php antes del ID de los comentarios
espero mi dedo verde hehehehhe
Insertar CODE, HTML o PHP:
<?php
//for use in the loop, list 10 post titles related to first tag on current post
$backup = $post; // backup the current object
$tags = wp_get_post_tags($post->ID);
if ($tags) {
echo 'Entradas recomendadas';
$first_tag = $tags[0]->term_id;
$args=array(
'tag__in' => $tagIDs,
'post__not_in' => array($post->ID),
'showposts'=>10,
'caller_get_posts'=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<p><a href="<?php the_permalink() ?>" rel="dofollow" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
<?php
endwhile;
}
}
$post = $backup; // copy it back
wp_reset_query(); // to use the original query again
?>
espero mi dedo verde hehehehhe