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
Kevin Leary is a freelance developer in Boston, MA with a strong portfolio of work, and over 13 years of experience as a programming consultant and digital strategy provider. Interested in working together? Hire me for your next project.