WordPress.org

Support

Support » How-To and Troubleshooting » How to add category image to loop

How to add category image to loop

  • Hello
    this code shows the sub categories in the main category archive

    <?php
    if (is_category()) {
      $this_category = get_category($cat);
      if (get_category_children($this_category->cat_ID) != "") {
        echo "";
        echo "<ul>";
        wp_list_categories('orderby=id&show_count=0&title_li=
    &use_desc_for_title=1&child_of='.$this_category->cat_ID);
        echo "</ul>";
      }
    }
    ?>

    How i can add category image with (that have link ) to above loop with any hack or plugin
    please help me i am new in wp
    thanks

    [duplicate – http://wordpress.org/support/topic/how-to-display-subcategory-images-in-main-category?replies=5 ]

  • The topic ‘How to add category image to loop’ is closed to new replies.
Skip to toolbar