Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="allinfo"><h2>Genre: </h2>
- <?php
- $taxonomy = 'genre';
- $tax_terms = get_terms($taxonomy,'number=14');
- shuffle($tax_terms);
- $tax_terms = array_slice($tax_terms , 0, 14);
- ?>
- <ul>
- <?php
- foreach ($tax_terms as $tax_term) {
- echo '<li>' . '<a href="' . esc_attr(get_term_link($tax_term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $tax_term->name ) . '" ' . '>' . $tax_term->name.'</a></li>';
- }
- ?>
- </ul>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement