September 21, 2015
Within the appropriately created taxonomy-category.php file, add the following to bring in your categories:
<ul> <?php $args = array( 'show_option_all' => '', 'orderby' => 'name', 'order' => 'ASC', 'style' => 'list', 'show_count' => 0, 'hide_empty' => 1, 'use_desc_for_title' => 1, 'child_of' => 0, 'feed' => '', 'feed_type' => '', 'feed_image' => '', 'exclude' => '', 'exclude_tree' => '', 'include' => '', 'hierarchical' => 1, 'title_li' => __( '' ), 'show_option_none' => __( '' ), 'number' => null, 'echo' => 1, 'depth' => 2, 'current_category' => 0, 'pad_counts' => 0, 'taxonomy' => 'flavour_type', 'walker' => null ); wp_list_categories( $args ); ?> </ul>
To make the posts appear (without the default number blog posts from the WordPress settings), add in the following to the content area and adjust accordingly:
<ul id="term_wrapper"> <?php $posts = query_posts($query_string . '&orderby=title&order=asc&posts_per_page=-1'); ?> <?php while (have_posts()) : the_post(); ?> <li> <h3><?php the_title(); ?></h3> <?php the_post_thumbnail(); ?> </li> <?php endwhile; ?> </ul>