Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array(
- 'type' => $type,
- 'child_of' => 0,
- 'parent' => '',
- 'orderby' => 'name',
- 'order' => 'ASC',
- 'taxonomy' => 'categoria',
- 'pad_counts' => false
- );
- $categories_odin = get_categories($args);
- ?>
- <?php foreach( $categories_odin as $category_product ):?>
- <?php $category_link = get_category_link( $category_product->term_id ); ?>
- <a href="<?php echo esc_url( $category_link ); ?>" title="Category Name"><?php echo $category_product->name; ?></a>
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement