Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Last active September 12, 2016 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasplevy/dd97c7ccc78e9cf56627aeccbde02743 to your computer and use it in GitHub Desktop.
Save thomasplevy/dd97c7ccc78e9cf56627aeccbde02743 to your computer and use it in GitHub Desktop.
<?php // don't add this line to a functions.php file
function my_output_cat_desc() {
if ( is_category() || is_tag() || is_tax() ) {
echo single_term_title();
echo term_description();
}
}
add_action( 'lifterlms_archive_description', 'my_output_cat_desc' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment