Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- # show categories
- $categories = get_the_term_list( $post->ID, 'ev_categories', '<p>', ', ', '</p>' );
- $categories = strip_tags( $categories );
- echo $categories;
- if ($categories <> '') echo '<div class="clear"></div>';
- ?>
- ?php
- # show categories
- $categories = get_the_term_list( $post->ID, 'ev_categories', '<p>', ', ', '</p>' );
- $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; };
- <?php
- # show categories
- $categories = get_the_term_list( $post->ID, 'ev_categories', '<p>', ', ', '</p>' );
- $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', '<p>', ', ', '</p>' );
- $locations = strip_tags( $locations );
- #echo $locations ;
- $categories = get_the_term_list( $post->ID, 'ev_categories', '<p>', ', ', '</p>' );
- $categories = strip_tags( $categories );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement