elmanisero

Untitled

Nov 12th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $categories = get_the_category();
  2. $separator = ' ';
  3. $output = '';
  4. if($categories){
  5. foreach($categories as $category) {
  6. $output .= '<li><i class="icon-folder-close"></i><a href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a><li>'.$separator;
  7. }
  8. echo trim($output, $separator);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment