The WordPress Default Theme shows posts title as links, so look in wp-content/themes/default/index.php for an example of that.
Thread Starter
vinuel
(@vinuel)
thanks michael
my brother came up with this solution and its perfect for me!
thanks brother!
<ul>
<?php
$categories= get_categories('child_of=6&order=desc'); /// Parent Category number
foreach ($categories as $cat) {
$var = $cat->cat_ID ;
$lastposts = get_posts('category='.$var.'&orderby=date&order=dsc');
echo "<h1>".$cat->cat_name. " (" .count($lastposts)." posts )</h1>";
echo "<ul>";
foreach($lastposts as $post){
setup_postdata($post);
$whatweneed = $post->ID;
echo "<li><a href=http://www.mywordpressblog.de/archives/" . $whatweneed .">";
the_title();
echo "</a></li>";
}
echo "</ul>";
}
?>
</ul>