Custom Post Type Introductions adds a new “Introduction” menu under all publicly viewable custom post types on your site. Here you can set a title and intro text to display on your post type archive.
This functionality is currently missing from WordPress and the only workaround I’ve found is to create a page to hold the data. My idea with this is to keep everything under the most logical menus for the best user experience.
Once installed, a new link will appear under all publicly visible custom post types, entitle
Introduction. Here you can enter a title and introduction.
To show the title or content in your theme, you can either use the shortcode on a page:
[post_type_intro field="title" posttype="your_posttype"]
The options are:
- field: title/content
- posttype: your_posttype
Alternatively, you can use the shortcode directly in a template:
<?php echo do_shortcode('[post_type_intro field="title" posttype="your_posttype"]'); ?>
The best place to use this is in your
- Upload the
custom-post-type-introductionsfolder to the
/wp-content/plugins/directory, or install via Plugins > Add New > Upload and upload the
- Activate the plugin through the ‘Plugins’ menu in WordPress.
This plugin works well and is easily integrated.
Allows you to keep using archive-posttype.php template files the way the hierarchy intends them to be used, without wedging in queries to Pages that don’t belong really there, or other workarounds.
Contributors & Developers
“Custom Post Type Introductions” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Swapped constructors round to remove strict waring.
- Initial Release