Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. $args = array( 'hide_empty=0' );
  2. $terms = get_terms( 'issue', 'orderby=id&order=DESC' );
  3. if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
  4. $count = count( $terms );
  5. $i = 0;
  6. $term_list = '<p class="my_term-archive">';
  7. foreach ( $terms as $term ) {
  8. $i++;
  9. $term_list .= '<a href="' . get_term_link( $term ) . '" title="' . sprintf( __( 'View all post filed under %s', 'my_localization_domain' ), $term->name ) . '"> Issue (' . $term->name . ')</a>';
  10. if ( $count != $i ) {
  11. $term_list .= ' &middot; ';
  12. }
  13. else {
  14. $term_list .= '</p>';
  15. }
  16. }
  17. echo $term_list;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement