Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // unlink category function
- function the_category_unlinked($separator = ' ') {
- $categories = (array) get_the_category();
- $thelist = '';
- foreach($categories as $category) { // concate
- $thelist .= $separator . $category->category_nicename;
- }
- echo $thelist;
- }
- function the_texos_unlinked(){
- $terms = get_the_terms( $post->ID, 'iso_cat' );
- if ( $terms && ! is_wp_error( $terms ) ) :
- $draught_links = array();
- foreach ( $terms as $term ) {
- $draught_links[] = $term->name;
- }
- $on_draught = join( " ", $draught_links );
- endif;
- $on_draught = strtolower($on_draught);
- echo $on_draught;
- }
- // use
- <?php the_category_unlinked(' '); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement