Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array(
- 'orderby' => 'id',
- 'order' => 'ASC',
- 'taxonomy' => 'album'
- );
- $categories=get_categories($args);
- foreach($categories as $category) {
- if($category->parent!=0) {
- ?>
- <li class="span3">
- <div class="thumbnail">
- <a href="<? bloginfo('url'); ?>/album/<?php echo $category->category_nicename; ?>" rel="nofollow">
- <img src="<?php bloginfo('url'); ?>/covers/<?php echo $category->category_nicename; ?>.jpg" alt="">
- </a>
- <div class="caption">
- <a href="<? bloginfo('url'); ?>/album/<? echo $category->category_nicename; ?>">
- <? echo $category->parent . ' - ' . $category->name; ?>
- </a>
- </div>
- </div>
- </li>
- <?
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement