[Plugin: Taxonomy Images] Thumbails with Subcategory List
-
Having a whale of a time with this one. On my main category page, I want to display all subcategories with their thumbnails which are set in the Taxonomy Images plugin. I’ve tried different sets of code listed on the plugin page, in a screencast I came across and various sites where people were looking for help with similar issues. No luck thus far.
I’m working on a child theme of the Genesis framework, if that helps out in either way. Here’s a snippet of the code I’m using to display my subcategories – just need a way to add the images with them.
add_action('genesis_before_loop', 'category_grid'); function category_grid() { $this_category = get_query_var('cat'); $subcategories = get_categories('child_of='.$this_category.'&hide_empty&orderby=title&order=asc'); // List subcategories of current category echo '<div class="category-grid-listing">'; foreach ($subcategories as $subcategory) { echo sprintf('<div class="category-grid-box"><a href="%s">%s</a>', get_category_link($subcategory->term_id), $subcategory->name), '</div>'; } echo '</div><!--category-grid-listing-->'; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Taxonomy Images] Thumbails with Subcategory List’ is closed to new replies.