WordPress.org

Ready to get started?Download WordPress

Forums

[closed] How to add category image to loop (1 post)

  1. omidgs
    Member
    Posted 1 year ago #

    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 ]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.