- This is what I have, I want to add images to it for parent categories only.
- <?php wp_list_categories(depth=1); ?>
- This is what I've tried with no resolve.
- <?php foreach (wp_list_categories('depth=1') as $cat) : ?>
- <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /><br/>
- <div class="product-price">
- <a href="<?php echo get_category_link($cat->term_id); ?>"><?php echo $cat->cat_name; ?></a>
- <?php endforeach; ?>
a guest Nov 30th, 2012 166 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data