Большое Вам спасибо за работу!
Список постов я пробую получить вот так:
<?php
$all_cats = wp_list_categories('hide_empty=0&title_li=&child_of=4');
foreach( $all_cats as $cat ) :
?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<ul>
<?php
$categoryvariable = the_ID(); // assign the variable as current category
$query = 'cat=' . $categoryvariable. '&orderby=date&order=ASC'; // concatenate the query
query_posts($query); // run the query
?>
</ul>
</li>
<?php
endforeach;
?>
Синтаксис проверю сейчас