{"id":20663,"date":"2012-11-09T03:25:16","date_gmt":"2012-11-09T03:25:16","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/template-part-shortcode\/"},"modified":"2012-11-09T03:25:16","modified_gmt":"2012-11-09T03:25:16","slug":"template-part-shortcode","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/template-part-shortcode\/","author":120217,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1","stable_tag":"trunk","tested":"3.4.2","requires":"3.4","requires_php":"","requires_plugins":"","header_name":"Template Part Shortcode","header_author":"Marty Spellerberg","header_description":"","assets_banners_color":"","last_updated":"2012-11-09 03:25:16","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/halfempty\/template-part-shortcode","header_author_uri":"http:\/\/martyspellerberg.com","rating":5,"author_block_rating":0,"active_installs":100,"downloads":2874,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[80,60435,4516],"plugin_category":[43],"plugin_contributors":[83761],"plugin_business_model":[],"class_list":["post-20663","plugin","type-plugin","status-publish","hentry","plugin_tags-shortcode","plugin_tags-template-parts","plugin_tags-templates","plugin_category-customization","plugin_contributors-martyspellerberg","plugin_committers-martyspellerberg"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/template-part-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Template parts are reusable snippets of code stored in your theme directory. Normally, they are called by other template files using the get_template_part() function. This plugin creates a shortcode for calling template parts from the body of a post.<\/p>\n\n<p>Shortcode usage is: [template part=\"somepart\"].<\/p>\n\n<p>Template parts must be stored in a \"parts\" folder within your theme directory.<\/p>\n\n<p>If you use custom loops in your template parts, remember to use \"reset_query\" at the end to return the page to normal.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin, in the normal way;<\/li>\n<li>In your theme directory, create a subfolder called \"parts\";<\/li>\n<li>Create your template part and save it into the \"parts\" directory -- ie. parts\/somepart.php;<\/li>\n<li>In your post Content, call the part via [template part=\"somepart\"]<\/li>\n<\/ol>\n\n<p>That's it!<\/p>","raw_excerpt":"A (very) simple WordPress plugin for embedding template parts in your content.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/20663","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=20663"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/martyspellerberg"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=20663"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=20663"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=20663"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=20663"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=20663"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=20663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}