[wp-trac] [WordPress Trac] #38487: the_archive_description() doesn't output the custom post type description when used in a post type archive template
WordPress Trac
noreply at wordpress.org
Mon Jan 16 20:22:22 UTC 2017
#38487: the_archive_description() doesn't output the custom post type description
when used in a post type archive template
-------------------------------+------------------------------
Reporter: henry.wright | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.6.1
Severity: normal | Resolution:
Keywords: | Focuses: template
-------------------------------+------------------------------
Comment (by henry.wright):
Further to @swissspidy's post above, you may need
{{{is_post_type_archive()}}} if your filter function is in a plugin or in
your functions file.
Ref https://codex.wordpress.org/Function_Reference/is_post_type_archive
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38487#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list