Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function em_tag_list(){
- $tags = get_terms(EM_TAXONOMY_TAG,'hide_empty=0');
- echo "<ul>";
- foreach ($tags as $tag) { //$tag->name
- echo '<li><a href="' . get_term_link( $tag->name, EM_TAXONOMY_TAG) . '">' . $tag->name .'</a></li>' ;
- }
- echo "</ul>";
- }
- add_shortcode('tag_list', 'em_tag_list');
- //USAGE: [tag_list]
- ===================================================================================
- add_filter('em_tag_output_placeholder','my_em_placeholder_tag_mod',1,3);
- function my_em_placeholder_tag_mod($replace, $EM_Tag, $result){
- if ( $result == '#_TAGNOTES' ) {
- $replace = $EM_Tag->description;
- }
- return $replace;
- }
- //USAGE: #_TAGNOTES at event > formatting > event tags
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement