{"id":1124,"date":"2009-06-26T19:44:52","date_gmt":"2009-06-26T19:44:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/single-post-template\/"},"modified":"2013-04-19T15:33:09","modified_gmt":"2013-04-19T15:33:09","slug":"single-post-template","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/single-post-template\/","author":245612,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4.4","stable_tag":"1.4.4","tested":"3.6.1","requires":"3.5","requires_php":"","requires_plugins":null,"header_name":"Single Post Template","header_author":"Nathan Rice","header_description":"","assets_banners_color":"","last_updated":"2013-04-19 15:33:09","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=5553118","header_plugin_uri":"http:\/\/www.nathanrice.net\/plugins","header_author_uri":"http:\/\/www.nathanrice.net\/","rating":4.4,"author_block_rating":0,"active_installs":4000,"downloads":105567,"num_ratings":14,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"nathanrice","date":"2009-06-26 19:44:52"},"1.1":{"tag":"1.1","author":"nathanrice","date":"2009-06-26 20:12:54"},"1.3":{"tag":"1.3","author":"nathanrice","date":"2009-12-22 16:42:07"},"1.4":{"tag":"1.4","author":"nathanrice","date":"2013-04-11 02:09:22"},"1.4.1":{"tag":"1.4.1","author":"nathanrice","date":"2013-04-11 14:10:00"},"1.4.2":{"tag":"1.4.2","author":"nathanrice","date":"2013-04-12 02:00:56"},"1.4.3":{"tag":"1.4.3","author":"nathanrice","date":"2013-04-12 02:17:31"},"1.4.4":{"tag":"1.4.4","author":"nathanrice","date":"2013-04-19 15:33:09"}},"upgrade_notice":[],"ratings":{"1":"2","2":0,"3":0,"4":0,"5":"12"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.3","1.4","1.4.1","1.4.2","1.4.3","1.4.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3238164,"resolution":"1","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3238164,"resolution":"2","location":"plugin"}},"screenshots":{"1":"This is what the top of your new Post Templates should look like","2":"This is the new box that this plugin adds to your post edit screen"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[25794,57046,57045],"plugin_category":[],"plugin_contributors":[77841],"plugin_business_model":[],"class_list":["post-1124","plugin","type-plugin","status-publish","hentry","plugin_tags-post-templates","plugin_tags-single-post-templates","plugin_tags-single-posts","plugin_contributors-nathanrice","plugin_committers-nathanrice"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/single-post-template.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/single-post-template\/trunk\/screenshot-1.png?rev=3238164","caption":"This is what the top of your new Post Templates should look like"},{"src":"https:\/\/ps.w.org\/single-post-template\/trunk\/screenshot-2.png?rev=3238164","caption":"This is the new box that this plugin adds to your post edit screen"}],"raw_content":"<!--section=description-->\n<p>The Single Post Template plugin adds the ability for your theme to include \"Post Templates\" in much the same way you can add \"Page Templates\", allowing you to choose (via a simple dropdown) which post template you want to use, on a per-post basis.<\/p>\n\n<p>All you need to do, after installing and activating the plugin, is create one or more \"Post Templates\" in your theme's folder, and when creating or editing a post, choose the post template that you would like to use. If no post template is selected, the default template will be used.<\/p>\n\n<h3>1.2<\/h3>\n\n<ul>\n<li>Minor update<\/li>\n<\/ul>\n\n<h3>1.3<\/h3>\n\n<ul>\n<li>Copied methodology of WordPress <a href=\"http:\/\/xref.yoast.com\/trunk\/_functions\/get_page_templates.html\">get_page_templates()<\/a> function<\/li>\n<li>Added 2.9 compatibility<\/li>\n<li>Ensured 2.8 backward compatibility<\/li>\n<\/ul>\n\n<h3>1.4<\/h3>\n\n<ul>\n<li>Compatibility with up to WordPress 3.6<\/li>\n<li>Build a class for better namespacing and to avoid conflicts with Genesis<\/li>\n<\/ul>\n\n<h3>1.4.1<\/h3>\n\n<ul>\n<li>Fix admin bug<\/li>\n<\/ul>\n\n<h3>1.4.2<\/h3>\n\n<ul>\n<li>Fix bugs, feel sorry for myself<\/li>\n<\/ul>\n\n<h3>1.4.3<\/h3>\n\n<ul>\n<li>Fix another bug, loathe myself<\/li>\n<\/ul>\n\n<h3>1.4.4<\/h3>\n\n<ul>\n<li>Fix issue with default template not loading<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p><strong>Installation<\/strong><\/p>\n\n<ol>\n<li>Upload the entire <code>single-post-template<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Create Post Templates in your theme's folder, as described in Usage<\/li>\n<\/ol>\n\n<p><strong>Usage<\/strong><\/p>\n\n<p>After you have installed the plugin, you'll need to create some Post Templates to use. In order to create a Post Template, either duplicate your default single post template, or create a new template file. Insert the following code at the very top of the file:<\/p>\n\n<pre><code>&lt;?php\n\/*\nSingle Post Template: [Descriptive Template Name]\nDescription: This part is optional, but helpful for describing the Post Template\n*\/\n?&gt;\n<\/code><\/pre>\n\n<p><em>See Screenshot #1 for what this might look like in your code editor<\/em><\/p>\n\n<p>Once you have created a new Post Template, either edit or create a new post, and directly underneath the post content box, you should see a new box labeled \"Single Post Template\". Choose the Post Template you want to use and publish or update the post.<\/p>\n\n<p><em>See Screenshot #2 for what this might look like in your post edit screen<\/em><\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20create%20new%20post%20templates%3F'><h3>How do I create new Post Templates?<\/h3><\/dt>\n<dd><p>Please see the Installation -&gt; Usage section for details on how to create new Post Templates.<\/p><\/dd>\n<dt id='how%20do%20i%20use%20the%20post%20templates%20i%20created%3F'><h3>How do I use the Post Templates I created?<\/h3><\/dt>\n<dd><p>Please see the Installation -&gt; Usage section for details on how to use Post Templates.<\/p><\/dd>\n<dt id='can%20i%20include%20this%20plugin%20in%20my%20theme%20for%20distribution%3F'><h3>Can I include this plugin in my theme for distribution?<\/h3><\/dt>\n<dd><p>Yes. Source credits for the plugin should remain intact, per GPL requirements.<\/p><\/dd>\n<dt id='how%20do%20i%20include%20this%20plugin%20in%20my%20theme%20for%20distribution%3F'><h3>How do I include this plugin in my theme for distribution?<\/h3><\/dt>\n<dd><p>If you don't know how to do this, you will need to contact me for instructions. I do charge a consulting fee for this service.<\/p><\/dd>\n<dt id='i%20have%20a%20question%20that%20wasn%27t%20covered%20in%20the%20faq.%20can%20i%20contact%20you%3F'><h3>I have a question that wasn't covered in the FAQ. Can I contact you?<\/h3><\/dt>\n<dd><p>Please <a href=\"http:\/\/www.nathanrice.net\/contact\/\" title=\"email Nathan Rice\">email me<\/a> or <a href=\"http:\/\/twitter.com\/nathanrice\">@nathanrice<\/a> me on Twitter.<\/p>\n\n<p>Because I try to offer personal email support, I do ask that you compensate me for the time I spend helping you. This can run anywhere from $10 for simple support, up to $125 for more complex issues or use cases.<\/p>\n\n<p>Bug reports are, of course, appreciated and cost you nothing. I will try to make sure bugs are fixed ASAP.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Changed some function and variable names for consistency<\/li>\n<li>Ensured WordPress 2.8+ compatibility<\/li>\n<li>Fixed a bug that presents when you include the plugin in your WordPress theme's folder<\/li>\n<\/ul>","raw_excerpt":"Single Post Template adds the ability for your theme to include &quot;Post Templates&quot; in much the same way you can add &quot;Page Templates&quot; &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=1124"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nathanrice"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1124"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1124"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1124"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1124"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1124"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}