...

View Full Version : How to get related post by tag - have something already..



tomystein
04-18-2012, 04:48 PM
Hi,
This is generating general posts for me and I add them in a box on the sidebar.



<?php
$args = array(
'post_type' => 'books',
'posts_per_page' => 6,
'orderby'=>'date',
'order'=>DESC,);

query_posts( $args );
while ( have_posts() ) {
the_post();
?>

Do you know what do I need to add in order to get the related posts by tags and not just general ones?

That's WordPress of course.

Many thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum