Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/5432602 to your computer and use it in GitHub Desktop.
Save braddalton/5432602 to your computer and use it in GitHub Desktop.
function display_category_archives_description () {
if (is_category() ) {
echo category_description( $category-id );
}}
add_action( 'genesis_before_loop', 'display_category_archives_description');
/**
* @author Brad Dalton - WP Sites
*
* @link http://wpsites.net/web-design/display-image-on-all-category-pages/
*/
@martynchamberlin
Copy link

Thanks man! Using this.

@Luca87
Copy link

Luca87 commented Feb 15, 2014

Thanks for this code snippet !

@Swagatam1975
Copy link

Thanks so much, worked like charm!! Very grateful!

@Swagatam1975
Copy link

How can I restrict the description to show only on first pages of the archives?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment