Plugin / Post Type Archive Descriptions

Mark Root-Wiley, MRW Web Design, NonprofitWP.org

Frequently Asked Questions (FAQ)

Yes. The plugin does not directly integrate with the post editor screen so no changes were required. Be aware that as of 5 Dec 2019, it appears the Twenty Nineteen theme will not support post type archive descriptions by default. Unless something changes, you will need to manually add support for them in a child theme if using Twenty Nineteen. See the next FAQ for how to do that.
In WordPress 4.1, the_archive_description() and get_the_archive_description() were introduced. As long as your theme supports those functions, you don’t have to do anything! Older themes can use ptad_get_post_type_description() or ptad_the_post_type_description() to return or echo a post type description. Both functions take an optional $post_type slug argument to return a specific post type. However, that is unnecesarry on a page that returns true for is_post_type_archive()`. Chances are you want this in the archive-{post_type_slug}.php or archive.php template files.
By default, any custom post type excluding Posts and Pages that was registered with 'has_archive' => true. There is a filter (see below) to add support for any post type.
Glad you asked. Yes. Plenty! Filters: ptad_post_types – specify the post types with a description (default is all non-built_in post types where has_archive is true) ptad_admin_title – Modify admin page title ptad_menu_label – Modify the menu item label in the admin ptad_description_capability – Set capability of who can edit descriptions. Default: edit_posts ptad_edit_description_link – Modify admin bar link to edit the description ptad_view_archive_link – Modify admin bar link to view the post type archive Actions: ptad_before_editor – Between title and description editor for ALL admin pages. Receives $post_type arg. ptad_before_editor_{post_type} – Between title and description editor for any specific post type. ptad_after_editor – Immediately below description editor for ALL admin pages. Receives $post_type arg. ptad_after_editor_{post_type} – Immediately below description editor for any specific post type.

Ratings

5
5 reviews

Rating breakdown

Details Information

Version

1.1.5

First Released

10 Dec, 2015

Total Downloads

15,146

Wordpress Version

4.6 or higher

Tested up to:

5.2.4

Require PHP Version:

-

Tags

Contributors

Languages

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.