Last active
August 29, 2015 14:10
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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