OK I can see I'm not grabbing the attention of the wordpress gurus here ;) so I'll explain a little more clearly:
(although you may have to look at my site to see what I'm on about!)
In the sidebars, you can list recent posts from categories like this:
<...ul...>
<?php
$myposts = get_posts('numberposts=10&offset=0&category=5');
foreach($myposts as $post) :
?>
<...li...><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><.../li...>
<?php endforeach; ?>
<.../ul...>
Thats really useful for your main index.
I have made a custom Categories page called "category.php" that is used automatically by wordpress when you click on any of the categories listed on my sidebar navigation ( [url]www.dadako.com[/url] )
In this custom categories page, I have set a bit of code to show you what cat you are in:
<?php $this_category = get_category($cat); ?><?php echo $this_category->cat_name; ?>
Underneath that, I wanted to have a list of the last 30 or so posts in that category, although fictional, take a look at the following code to see how I "think" it should be done:
<...ul...>
<?php
$myposts = get_posts('numberposts=30&offset=0&category=$this_category');
foreach($myposts as $post) :
?>
<...li...><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><.../li...>
<?php endforeach; ?>
<.../ul...>
Obviously it doesn't work and I'm not quite sure of the correct syntax. Also at some point I will try to list thumbnails too, not just titles.
any help would be greatly appreciated.