'; echo '
  • All
  • '; if ( $count > 0 ){ foreach ( $terms as $term ) { $termname = strtolower($term->name); $termname = str_replace(' ', '-', $termname); echo '
  • '.$term->name.'
  • '; } } echo ""; ?> 'post', 'posts_per_page' => -1)); $count =0; ?>
      have_posts() ) : $loop->the_post(); $c++; if( $c == 3) { $style = 'third'; $c = 0; } else $style=''; $terms = get_the_terms( $post->ID, 'category' ); if ( $terms && ! is_wp_error( $terms ) ) : $links = array(); foreach ( $terms as $term ) { $links[] = $term->name; } $links = str_replace(' ', '-', $links); $tax = join( " ", $links ); else : $tax = ''; endif; ?>
    • >