I have 20 subcategories from a parent category, and they are like that
Parent
- September
- November
- … up to 20
Here is the code that try it to display, but I get only 1 category instead
<?php
$categories = get_categories('child_of=505');
foreach($categories as $category): ?>
<div class="qitem">
<a href="<?php get_category_link( $category->term_id ); ?>" title="<?php echo $category->name; ?>">
<?php echo $category->name; ?>
</a>
<h4>
<span class="caption">
<?php echo $category->name; ?>
</span>
</h4>
<p>
<span class="caption">
<?php echo $category->description; ?>
</span>
</p>
</div>
<?php endforeach; ?>
endforeach
.