Hi, i'm using a plugin to attach an image to each category in wp and i'm using this code from the plugin coder to display my categories:
<?php foreach (get_categories() as $cat) : ?> <li> <p align=center><a href="<?php echo get_category_link($cat->term_id); ?>"> <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /> <br><a href="<?php echo get_category_link($cat->term_id); ?>"><?php echo $cat->cat_name; ?></a></p><br><br> </li> <?php endforeach; ?>
However by now i have over 150 categories and they all get listed with their image into one gigantic page with over 20mb of data. I'm not a coder myself and tried the last days to come up with a solution but i failed.
I'd like to split the output either by alphabet (ie. list A-F, G-L and so on) or by pages with for example 25 categories listed on each page.
Maybe someone can give me a hint how to do that in php?