{"id":6772,"date":"2009-09-20T19:43:10","date_gmt":"2009-09-20T19:43:10","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/improved-include-post\/"},"modified":"2009-09-20T19:43:10","modified_gmt":"2009-09-20T19:43:10","slug":"improved-include-post","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/improved-include-post\/","author":4459235,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.0.1","stable_tag":"trunk","tested":"2.7","requires":"1.5.3","requires_php":"","requires_plugins":"","header_name":"Improved Include Post","header_author":"Alin Motiu based on a script wrote by Vito Tardia","header_description":"","assets_banners_color":"","last_updated":"2009-09-20 19:43:10","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/alin-motiu.ro\/?p=238","header_author_uri":"http:\/\/www.alin-motiu.ro","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1976,"num_ratings":0,"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":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[529,243],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-6772","plugin","type-plugin","status-closed","hentry","plugin_tags-content","plugin_tags-pages","plugin_committers-feryan"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/improved-include-post.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Improved Include Post is an expanded version of the original Improved Include Page developed by Vito Tardia (http:\/\/www.vtardia.com\/improved-include-page\/) and it was developed to add some features I needed.<\/p>\n\n<h3>Key Features<\/h3>\n\n<ul>\n<li>page title display with optional HTML code,<\/li>\n<li>content display with different styles (full, teaser, custom \u2018more\u2019 link),<\/li>\n<li>Wordpress filters applied to both the content and the title,<\/li>\n<li>supports Wordpress 2.5.x Shortcode API<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Download Improved Include Page\n\n<ol>\n<li>Extract the zipped archive<\/li>\n<li>Upload the file <code>iinclude_post.php<\/code> to the <code>wp-content\/plugins<\/code> directory \nof your Wordpress installation<\/li>\n<li>Activate the plugin from your WordPress admin 'Plugins' page.<\/li>\n<li>Include pages in your templates ising <code>iinclude_page<\/code> function or in your \npages\/posts using the shortcode syntax.<\/li>\n<\/ol><\/li>\n<\/ol>\n\n<h3>How to use it<\/h3>\n\n<p>After installing it, the plugin adds the function \u00b4iinclude_post\u00b4:<\/p>\n\n<p>void <strong>iinclude_post<\/strong>(int post_id [,string params, boolean return = false])<\/p>\n\n<p>The function takes three parameters: the id of the page to include (<code>post_id<\/code>) and an optional string (<code>params<\/code>) which contains the display options and an optional boolean (<code>return<\/code>) tells wether to return the content or display it on screen.<\/p>\n\n<h4>Example 1: basic usage<\/h4>\n\n<p>If you wish to include the content of page number <code>4<\/code> insert the following code into your template file (eg. sidebar.php):<\/p>\n\n<pre><code>&lt;?php iinclude_post(4); ?&gt;\n<\/code><\/pre>\n\n<p>or<\/p>\n\n<pre><code>&lt;?php echo iinclude_post(4, null, true); ?&gt;\n<\/code><\/pre>\n\n<p>In order to avoid PHP errors you should use the function with the following syntax:<\/p>\n\n<pre><code> &lt;?php if(function_exists('iinclude_post')) iinclude_post(4); ?&gt;\n<\/code><\/pre>\n\n<h4>Example 2: using optional parameter<\/h4>\n\n<p>You can also display the page title using the following code:<\/p>\n\n<pre><code>&lt;?php iinclude_post(4,'displayTitle=true&amp;titleBefore=&lt;h2 class=\"sidebar-header\"&gt;'); ?&gt;\n<\/code><\/pre>\n\n<h4>Example 3: using Shortcode API<\/h4>\n\n<p>You can include a page's content in a page\/post using the syntax:<\/p>\n\n<pre><code>[include-post id=\"123\"]\n<\/code><\/pre>\n\n<p>or<\/p>\n\n<pre><code>[include-post id=\"3\" displayTitle=\"true\" displayStyle=\"DT_TEASER_MORE\" titleBefore=\"&lt;h3&gt;\" titleAfter=\"&lt;\/h3&gt;\"  more=\"continue&amp;raquo;\"]\n<\/code><\/pre>\n\n<h4>Parameters<\/h4>\n\n<p>The current version supports the following parameters:<\/p>\n\n<dl>\n<dt>displayTitle (<em>boolean<\/em>)<\/dt>\n<dd>toggle title display<\/dd>\n\n<dt>titleBefore\/after (<em>string<\/em>)<\/dt>\n\n<dd>string to display before and after the title<\/dd>\n\n<dt>displayStyle (<em>integer constant<\/em>)<\/dt>\n<dd>one of the following:\n<ul>\n<li>`DT_TEASER_MORE` - Teaser with &#8216;more&#8217; link (default)<\/li>\n<li>`DT_TEASER_ONLY` -Teaser only, without &#8216;more&#8217; link<\/li>\n<li>`DT_FULL_CONTENT` - Full content including teaser<\/li>\n<li>`DT_FULL_CONTENT_NOTEASER` - Full content without teaser<\/li>\n<\/ul>\n<\/dd>\n\n<dt>more (string)<\/dt>\n<dd>text to display for the &#8216;more&#8217; link<\/dd>\n<\/dl>","raw_excerpt":"Improved Include Post plugin allows to include the content of a post in a template file with several options.\n\nSince version 0.1.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6772","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=6772"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/feryan"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6772"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6772"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6772"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6772"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6772"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}