Created
July 26, 2016 15:37
-
-
Save schoenwaldnils/2893796b7dd562350397a5a3acc0cba3 to your computer and use it in GitHub Desktop.
Show custom taxonomies in template
This file contains 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
<table> | |
<?php | |
$taxonomies = array_post_taxonomies(get_the_id()); | |
foreach ($taxonomies as $taxonomie) { ?> | |
<tr> | |
<td><?php echo $taxonomie['title']; ?></td> | |
<td><?php echo $taxonomie['term']; ?></td> | |
</tr> | |
<?php | |
} ?> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment