Category description always the same.
-
Hello Muhammad,
first of all thank you for this great plugin. It really tends to satisfy my needs. ??
I have a litte problem which I try figuring out the whole day and cant find a solution.
I want to display category image, category title and category description by using the following code:
<?php foreach (get_categories('orderby=id&child_of=24') as $cat) : ?> <p><img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /></p> <p><a href="<?php echo get_category_link($cat->term_id); ?>"><?php echo $cat->cat_name; ?></a></p> <p><a href="<?php echo get_category_link($term->term_id); ?>"><?php echo $term->description; ?></a></p> <?php endforeach; ?>
The problem is, that it always displays the same category-description (from the first category), although category-image and category-title are correct.
I do not understand why this happens and how to solve it. May you give me a hint or are able to correct my code to work as intended?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Category description always the same.’ is closed to new replies.