Created
November 30, 2020 04:58
-
-
Save yousufansa/8e260a356e34eefb8325c803cb05ed5a to your computer and use it in GitHub Desktop.
Vodi - Display Movie Tags on Single Movie Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ( ! function_exists( 'vodi_child_single_movie_meta_tag' ) ) { | |
| function vodi_child_single_movie_meta_tag() { | |
| global $movie; | |
| $tag = get_the_term_list( $movie->get_id(), 'movie_tag', '', ', ' ); | |
| if( ! empty ( $tag ) ) { | |
| echo '<span class="movie__meta--genre">' . $tag . '</span>'; | |
| } | |
| } | |
| } | |
| add_action( 'masvideos_single_movie_meta', 'vodi_child_single_movie_meta_tag', 40 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment