ID, 'ev_categories', '
', ', ', '
' ); $categories = strip_tags( $categories ); echo $categories; if ($categories <> '') echo ''; ?> ?php # show categories $categories = get_the_term_list( $post->ID, 'ev_categories', '', ', ', '
' ); $categories = strip_tags( $categories ); if ( strpos($categories,'arts and culture') !== false ) { $catID = 1; }; if ( strpos($categories,'business') !== false ) { $catID = 2; }; if ( strpos($categories,'community') !== false ) { $catID = 3; }; if ( strpos($categories,'education') !== false ) { $catID = 4; }; if ( strpos($categories,'sport') !== false ) { $catID = 5; }; ID, 'ev_categories', '', ', ', '
' ); $categories = strip_tags( $categories ); if ( strpos($categories,'arts and culture') !== false ) { $catID = 1; }; if ( strpos($categories,'business') !== false ) { $catID = 2; }; if ( strpos($categories,'community') !== false ) { $catID = 3; }; if ( strpos($categories,'education') !== false ) { $catID = 4; }; if ( strpos($categories,'sport') !== false ) { $catID = 5; }; # show locations $locations = get_the_term_list( $post->ID, 'ev_locations', '', ', ', '
' ); $locations = strip_tags( $locations ); #echo $locations ; $categories = get_the_term_list( $post->ID, 'ev_categories', '', ', ', '
' ); $categories = strip_tags( $categories );