Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array(
- 'orderby' => 'name',
- 'parent' => 0
- );
- $categories = get_categories( $args );
- foreach ( $categories as $category ) {
- echo '<p align="center"><a href="' . get_category_link( $category->term_id ) . '"><img src="http://pustakakoran.com/img/logo/koran-thumb/thumb-' . $category->cat_name . '.png" alt="' . $category->cat_name . '" width="150px" /><br/>' . $category->name . '</a> (' . $category->category_count . ' arsip)</p>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement