{"id":22879,"date":"2013-04-12T23:01:50","date_gmt":"2013-04-12T23:01:50","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/custom-post-type-introductions\/"},"modified":"2013-09-26T18:32:40","modified_gmt":"2013-09-26T18:32:40","slug":"custom-post-type-introductions","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/custom-post-type-introductions\/","author":8208220,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"trunk","tested":"3.5.2","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"Custom Post Type Introductions","header_author":"James Kemp","header_description":"","assets_banners_color":"00539e","last_updated":"2013-09-26 18:32:40","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/admin-quick-jump\/","header_author_uri":"http:\/\/www.jckemp.com\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1067,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"5"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"696814","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1794,9674,22028],"plugin_category":[],"plugin_contributors":[81392],"plugin_business_model":[],"class_list":["post-22879","plugin","type-plugin","status-closed","hentry","plugin_tags-custom-post-type","plugin_tags-introduction","plugin_tags-options-page","plugin_contributors-jamesckemp","plugin_committers-jamesckemp"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/custom-post-type-introductions_00539e.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>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.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>Once installed, a new link will appear under all publicly visible custom post types, entitle <code>Introduction<\/code>. Here you can enter a title and introduction.<\/p>\n\n<p>To show the title or content in your theme, you can either use the shortcode on a page:<\/p>\n\n<pre><code>[post_type_intro field=\"title\" posttype=\"your_posttype\"]\n<\/code><\/pre>\n\n<p>The options are:<\/p>\n\n<ul>\n<li><strong>field<\/strong>: title\/content<\/li>\n<li><strong>posttype<\/strong>: your_posttype<\/li>\n<\/ul>\n\n<p>Alternatively, you can use the shortcode directly in a template:<\/p>\n\n<pre><code>&lt;?php echo do_shortcode('[post_type_intro field=\"title\" posttype=\"your_posttype\"]'); ?&gt;\n<\/code><\/pre>\n\n<p>The best place to use this is in your <code>archive-your_posttype.php<\/code> file.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>custom-post-type-introductions<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory, or install via <strong>Plugins &gt; Add New &gt; Upload<\/strong> and upload the <code>custom-post-type-introductions.zip<\/code> file.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>v1.0.1<\/h4>\n\n<ul>\n<li>Swapped constructors round to remove strict waring.<\/li>\n<\/ul>\n\n<h4>v1.0.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"Add a title and introduction to display on your custom post type archive.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/22879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=22879"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jamesckemp"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=22879"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=22879"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=22879"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=22879"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=22879"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=22879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}