{"id":56174,"date":"2008-09-02T18:21:18","date_gmt":"2008-09-02T18:21:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/include-file-shortcode\/"},"modified":"2008-09-02T18:21:19","modified_gmt":"2008-09-02T18:21:19","slug":"include-file-shortcode","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/include-file-shortcode\/","author":158750,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"","stable_tag":"trunk","tested":"","requires":"","requires_php":"","requires_plugins":"","header_name":"include-file-shortcode","header_author":"","header_description":"","assets_banners_color":"","last_updated":"2008-09-02 18:21:19","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":498,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":[],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-56174","plugin","type-plugin","status-closed","hentry","plugin_committers-moronicbajebus"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/include-file-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"","raw_excerpt":"<p>Include File Shortcode allows you to simple mark in you post where to have a text file you specify inserted.<\/p>\n<p>You have already have a text file with a snippet of HTML of a large table. You are hesitant about just coping the code into the post because the table will appear in more than one post and you want to keep it up-to-date. This shortcode will allow you mark where in the post you want the snippet to be inserted.<\/p>\n<p>snippet.html:<br \/>\nThis is my snippet<\/p>\n<p>Post body:<br \/>\nHello.<br \/>\n[include src=\"\/path\/to\/snippet.html\"]<br \/>\nGoodbye.<\/p>\n<p>Final rendered results:<br \/>\nHello.<br \/>\nThis is my snippet<br \/>\nGoodbye.<\/p>\n<p>Usage:<br \/>\n[include src=\"internal\/path\/to\/file.html\"]<br \/>\n[include src_from_wp=\"to\/file.html\"] <\/p>\n<p>src - Use an internal path for the system<br \/>\nsrc_from_wp - Use a path starting from the root of the Wordpress installation (no need to include the starting slash '\/')\n<\/p>","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/56174","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=56174"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/moronicbajebus"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=56174"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=56174"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=56174"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=56174"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=56174"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=56174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}