Skip to content

Instantly share code, notes, and snippets.

@ethanclevenger91
Last active August 29, 2015 14:10
Show Gist options
  • Save ethanclevenger91/e00ba73b2b6770826e62 to your computer and use it in GitHub Desktop.
Save ethanclevenger91/e00ba73b2b6770826e62 to your computer and use it in GitHub Desktop.
Post type descriptions - puts a wysiwyg editor for CPTs in an intuitive location on the CPT index. Useful for things like lead-in paragraphs on a CPT archive. Wrapped conveniently in a plugin
<?php //https://bitbucket.org/webspec/webspec-post-type-descriptions
//As of WP 4.1
echo get_the_archive_description();
//Pre WP 4.1
$obj = get_queried_object();
echo stripslashes(html_entity_decode($obj->description));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment