• Resolved meganlop

    (@meganlop)


    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?

    http://wordpress.org/plugins/categories-images/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter meganlop

    (@meganlop)

    Hi again,

    just to be more precise, here I describe the situation I have right now:

    Category-1-Image
    Category-1-Title
    Category-1-Description

    Category-2-Image
    Category-2-Title
    Category-1-Description

    Category-3-Image
    Category-3-Title
    Category-1-Description

    The situation I would like to have:

    Category-1-Image
    Category-1-Title
    Category-1-Description

    Category-2-Image
    Category-2-Title
    Category-2-Description

    Category-3-Image
    Category-3-Title
    Category-3-Description

    I hope this makes it more clear what my problem is.

    Kind regards!

    Thread Starter meganlop

    (@meganlop)

    Sorry Muhammad,

    it was my fault, therefore this issue is resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category description always the same.’ is closed to new replies.