All code samples have been moved to a GitHub Gist.
If you’re working with custom taxonomies in WordPress, it’s nice to provide site owners the option to display term descriptions in their theme. Optional term descriptions can easily be displayed on a taxonomy archive page using the
I generally use this bit of code on the
taxonomy.php templates in a theme, but it can be used on other templates as well. Check out the WordPress template hierarchy for more information on the built-in taxonomy templates that can be leveraged within a WordPress theme.
More on Taxonomy Archives
About the Author