Vai al menu/Go to main navigation | Vai al contenuto/Go to main content

Improved Include Page

Last update: 17th january 2009 (v 0.4.7)

Improved Include Page is a Wordpress plugin which allows to include the content of a static page in a template file with several options. It is an expanded version of the original Include Page developed by Brent Loertscher and it was developed to add some features I needed to build this site.

Key Features

  • page title display with optional HTML code,
  • content display with different styles (full, teaser, custom ‘more’ link),
  • Wordpress filters applied to both the content and the title.
  • supports Wordpress 2.5.x Shortcode API

Version Notes 0.4.7

  • On WP 2.5 or greater allows custom inclusion by post type and status using parameters ‘allowType’ and ‘allowStatus’.
  • Bug fix: in shortcode fixed a bug that could crash PHP when including recursive page/posts

Important note on version 0.4.6

The inclusion of posts and unpublished or private pages was a bug. Recent comments show that this bug was really welcomed by some of you. I’m working on a more “elegant” and customizable solution, but in the meantime you can fix it editing line 172.

Version Notes (0.4.6)

  • Bug fixed: since this version you can include only static pages with status of ‘published’.

Version Notes (0.4.5)

  • Page ID can be a valid page path (WP 2.1 or higher required)

Version notes (0.4.4)

  • Added parameter $return (default = false) to iinclude_page() function
  • Added support for WP 2.5.x shortcode API

Version notes (0.4.3)

The code of this version it’s been cleaned and optimized using WordPress API.

Version notes (0.4.2)

This version fixes a bug that triggers an error when used with some content filter: the $page global variable is backed up and then restored before returning.

Version notes (0.4.1)

This version contains a bug fix by Jesse Plank: resolves a compatibility problem with the plugin EventCalendar.

How to install it

  1. Download Improved Include Page from this site or from WorPress plugin’s repository
  2. Extract the zipped archive
  3. Upload the file iinclude_page.php to the wp-content/plugins directory of your Wordpress installation
  4. Activate the plugin from your WordPress admin ‘Plugins’ page.
  5. Include pages in your templates ising iinclude_page function or in your pages/posts using the shortcode syntax.

How to use it

After installing it, the plugin adds the function iinclude_page:

void iinclude_page(int post_id [,string params, boolean return = false])

The function takes three parameters: the id of the page to include (post_id) and an optional string (params) which contains the display options and an optional boolean (return) tells wether to return the content or display it on screen.

Example 1: basic usage

If you wish to include the content of page number 4 insert the following code into your template file (eg. sidebar.php):

<?php iinclude_page(4); ?>

In order to avoid PHP errors you should use the function with the following syntax:

 <?php if(function_exists('iinclude_page')) iinclude_page(4); ?>

Example 2: using optional parameter

You can also display the page title using the following code:

<?php iinclude_page(4,'displayTitle=true&titleBefore=<h2 class="sidebar-header">'); ?>

Example 3: using Shortcode API

You can include a page’s content in a page/post using the syntax:

[include-page id="123"]

or

[include-page id="3" displayTitle="true" displayStyle="DT_TEASER_MORE" titleBefore="<h3>" titleAfter="</h3>"  more="continue&raquo;"]

Parameters

The current version supports the following parameters:

displayTitle (boolean)
toggle title display
titleBefore/after (string)
string to display before and after the title
displayStyle (integer constant)
one of the following:
  • DT_TEASER_MORE - Teaser with ‘more’ link (default)
  • DT_TEASER_ONLY -Teaser only, without ‘more’ link
  • DT_FULL_CONTENT - Full content including teaser
  • DT_FULL_CONTENT_NOTEASER - Full content without teaser
allowStatus (string)
comma separated list of allowed statuses (default = publish)
allowType (string)
comma separated list of allowed post types (default = page)
more (string)
text to display for the ‘more’ link

202 Comments to “Improved Include Page” (Post your comment)

  1. WordPress Station wrote:

    […] Vito Tardia Improves on an existing plugin which allows for easier inclusion of static html pages in your WP blog. WordPress […]

  2. WP Plugins DB: Improved Include Page wrote:

    […] Plugin Site: http://www.vtardia.com/blog/improved-include-page/ […]

  3. Beetle Blog » Improved Include Page Plugin wrote:

    […] Vito Tardia has added to the include page plugin that I wrote a while ago. His improved include page plugin adds some interesting features. I am glad to see someone add features to the plugin as I don’t have much time anymore for plugin development. […]

  4. Wordpress plugin: Improved Include Page at WordPress Station wrote:

    […] Vito Tardia Has updated the plugin Include Page. Plugin basics are including static html pages as WP Pages. […]

  5. jepp wrote:

    Does this plugin work with WP2.0? If not, any plans to update it? Thanks.

  6. Ragman wrote:

    I did some tests and the plugin seems working correctly with WP 2.0.

    Please, let me know if you find some bug or have some suggestion.

  7. Dayna wrote:

    I tried using this to include a page on a post

    if(function_exists('iinclude_page')) iinclude_page(238, DT_TEASER_MORE);

    with the opening and ending php tags..

    But it displayed the full page on the post without the more link, no errors either

    Any idea what I did wrong here?

    Thanks

  8. Ragman wrote:

    Dayna: the syntax of the “params” string is the same of Wordpress’s template tags. For example the code:

        if(function_exists('iinclude_page')) {
            iinclude_page(238, 'displayTitle=true&displayStyle=DT_TEASER_MORE&more=continue');
        }
    displays the excerpt of post number 238 with the post title between <h2> and </h2> tags and the text “continue” linked to the full page.

  9. Dayna wrote:

    Right, I tried with

    if(function_exists('iinclude_page')) iinclude_page(238, displayStyle=DT_TEASER_MORE&more=More information »);

    but it give me a

    Parse error: parse error, unexpected ‘=’ in /home/huaian/public_html/liberta/wordpress/wp-content/plugins/exec-PHP.php(45) : eval()’d code on line 5

    This works without the params

  10. Ragman wrote:

    The parameter string is to be enclosed between single or double quotes

  11. Dayna wrote:

    RIght, my mistake.. Add the single quotes but then my site will would be blank. Nothing will show up at all :(

  12. Ragman wrote:

    I just did a test with my local copy of WP2, I used your code with my post id n. 2:

    if(function_exists('iinclude_page')) iinclude_page(2, 'displayTitle=true&displayStyle=DT_TEASER_MORE&more=More information »');

    it works. Do you have some other plugin installed? Try without the ‘»’ symbol.

  13. Dayna wrote:

    Ya, I’m some other plugins instead. Tried with the symbol and it’s still a blank page for me.

    I think I’ll just copy and paste the page then, thanks for your help =D

  14. Ragman wrote:

    That sounds very strange. The only way I’ve found to get a similar error is trying to include a page that doesn’t exist. Maybe you could try disabling the others plugins.

    However I’m working to a new version, I’ll investigate on some possible solution.

  15. trevor wrote:

    Hey Vito, thanks v much for putting in the Polyglot handler - makes a big difference to the site we’re trying to get together…

  16. Zeppo wrote:

    Thanks Ragman, this plugin seems to be just what I was looking for! With this I can insert some teasers in my index page. Grazie molto!

  17. Martin wrote:

    Hi, Is it possible to use H1 tags for the title instead of the default H2?

    Sorry, I just started with Wordpress, and I also have no PHP knowledge…

  18. Ragman wrote:

    Hi Martin,

    to use a different header for the title you could write:

    < ?php if(function_exists('iinclude_page')) { iinclude_page($post_id, 'displayTitle=true&titleBefore=<h1>>&titleAfter=</h1>'); } ?>

  19. Martin wrote:

    Thanks you Ragman, that was easy. I should have searched in Wordpress codex too… I have another question which is more complicated and maybe not directly related to your plugin: is there a way to include a file that has a name taken from the current page name + something else like “sidebar” for example. What I mean - if you’re opening a page called “contact” then the template includes a page called “contact-sidebar”. I want to create custom sidebars per page and I want to automate it. I’m building a page for a client and she struggles with computers. I can tell her to wrap the text she wants to appear in the sidebar with <code></code>

    however it is too much for her, and the wysiwyg editor in wordpress sometimes make changes.

    Sorry for the long post. Basically I’m interested to know if there can be a php code that looks for a page with a name taken from the current page + some extension and if there is a such a page it loads it, if not - nothing happens. I couldn’t find any plugins or any help for creating custom sidebars. Thanks…

  20. Rena wrote:

    This looks like a great plugin. Does it give the ability to include pages based on criteria like “is a child page of current page”? I am looking for a plugin that will display the contents of a page’s child pages inline. Sort of like wp_list_pages, but with the content of the child pages not just a list of links.

    Thanks!

  21. Martin wrote:

    Sorry, English is not my first language and I wasn’t very clear… What I wanted to say is that I’m wondering whether your plugin can include a wordpress page which name begins with the name of the requested page + an extension of that name…

  22. Rena wrote:

    Since my last comment I have installed your plugin and implemented it. Aside from my earlier question (I checked out the code for the plugin and couldn’t see where it would inclulde the functionality I was looking for—to include pages based on conditional criteria instead of a static page value), I am have another issue:

    When I call the php for include page it displays the page “almost” properly, except that there is an undesired space above where I want the content to appear. When I look at the generated page’s source, I see that either wordpress or the include page plugin has added an extra

    <

    p> tag that isn’t in my pages html when the page renders.

    Any idea how to keep this from happening? I have already disabled the WYSIWYG rich editor and am just entering straight HTML.

    Thanks for the help!

  23. Tara Long wrote:

    Thanks so much for creating this plug-in. I think this is a real newbie question but wasn’t able to find any info in the codex or in google:

    How do I know which parameters are available to the iinclude() function?

    In the comments above you mention “the syntax of the “params” string is the same of Wordpress’s template tags.”

    Where do I find the list of those parameters?

    Many thanks!…

  24. Ragman wrote:

    Tara: you can find the parameter list in the header of the plugin file, just after the installation guide.

    The syntax of the string is the same of WP template tags, for example:

    
        iinclude_page(23, 'displayTitle=true&displayStyle=DT_FULL_CONTENT');
    

    will include the full content of the page which has id=23, including the teaser.

    I’m sorry. I realize that the documentation I provided with the plugin is not very clear. I think that in the next release I’ll include an external documentation file with some examples.

  25. Ragman wrote:

    Martin: with iinclude_page you can include a static post based only by its ID, for now.

    To obtain your custom include you have to create a custom function. I use a trick in my sidebar. here’s an example:

     if(is_page('contact')) {
          iinclude_page(123);  // where 123 is the id of my static page
          //or some other PHP code
     }
    

    However it’s an interesting feature. I’ll think about it for the next release.

  26. Ragman wrote:

    Rena: (1) this feature is not supported in iinclude_page. I achieved something similar playing with some Wordpress function (the article list on this site). If you want I can send you the code by mail.

    (2) I gave a look to the plugin code and it seems there is no extra markup. It could be some filter applied to the page (eg. markdown, textile) or some unicode character that some browser don’t read correctly (it happened to me during tests with IE)

  27. sparkyc wrote:

    Excellent (and well-documented) plugin. I’ve got it working on my site with no problems, but I’m having trouble trying to add a edit functionality to it (my PHP knowledge is ok, but not great).

    I’ve tried to add an edit link to the bottom of the post, by appending

    $output .= edit_post_link('Edit this entry.', '

    ’, ‘

    ’);

    just before $output is returned for the final time at the end of the script. It works exactly how I want, except that the edit link appears between the title and the content, not after the content like I want. Am I doing something wrong?

  28. dexter wrote:

    hi,

    awesome plugin. is there a way to define the content of the teaser and the contentpage separated from each other? means teaser=text 1 | content page= text 1+pictures1,2,3,4,5

  29. Ragman wrote:

    Thank you dexter.

    Using the option DT_FULL_CONTENT the function displays both the teaser and the content. Any custom content should be inserted directly in the page.

  30. blowfish wrote:

    I require some step to step how-to … i want to add into a post some information for a page called “componenta.php” so how do i do this …? using this plugin. thanks for infos in advanced

  31. Jack Cheng wrote:

    […] wp-iinclude_page to pull the news announcement from a page I can easily edit […]

  32. Lisa wrote:

    Thanks for the great plugin!! Everything is working great, except the post content doesn’t look like the rest of the entries on the page. I have looked throught the code and tried to add some divs with the styles that the rest of my posts have, but I keep breaking the plugin. Any suggestions?? My testsite is www.community.iastate.edu/wp/

  33. How to create a static front page in WordPress (with K2 theme) at Arno Hammann wrote:

    […] 2. If you’re using the default theme, your probably done now, unless the sidebar doesn’t show what you want it to. I’ll get back to this later. You can now either write whatever you want to be shown on the front page in proper HTML where it says “your text goes here“. But maybe you want to make use of WordPress’ Pages and write/update your front page via the normal site admin interface. In which case you could make use of Vite Tardia’s improved include page plugin, adding the following code to your file instead: <?php if (function_exists(’iinclude_page’))    iinclude_page($post_id, [params]); ?> The plugin’s documentation gives the options that can be used as [params]. Additionally, you will want to wrap this line of code in the correct tags - look in your page.php template in your theme’s directory. In K2, for example, it will look something like this: <div class="primary">    <div class="item">       <div class="itemtext">          <?php if(function_exists(’iinclude_page’)) iinclude_page(6);?>       </div>    </div> </div> […]

  34. The WP Themes » Improved Include Page wrote:

    […] Shows the content of pages or post where you to want. Click here! […]

  35. Sara wrote:

    Like sparkyc in comment #27, I would like to be able to add an “edit this entry” link onto my iincluded content. I made the modification to iinclude_page.php that sparkyc recommends, but the behavior is not what I wanted.

    The “edit this entry” link that appears associated with my iincluded sidebar, takes me to the base Page’s content, not to the content of the iincluded Page.

    I have iincluded the content of the sidebar on my homepage.

    So, the question is: Is there a way to place an “edit this entry” link on the display of the iincluded content, that would link to the iincluded Page, rather than to the main content of the displayed Page?

    I hope that makes sense. My site’s testbed is at nkfreedomhouse.technicalsupportresources.com . Feel free to take a look!

  36. African Production Services » Including a Page wrote:

    […] You might also want to include Pages in various places on your site. That way, you can have an easy way to edit elements of your website. There is a plugin called Include Page that makes doing this easy. Improved Include Page (http://www.vtardia.com/blog/improved-include-page/) is a more updated version of the plugin […]

  37. Jimy wrote:

    The necessary plugin (: It is established easily and perfectly works. Thank u so much!

  38. Brady J. Frey wrote:

    I see Sara asked it and Sparky to no response - was there ever a solution about the ‘edit’ button showing up in this tag? Thanks for the useful plugin:)

  39. Ragman wrote:

    Brady: I mailed to Sara and Sparky a temporary solution that works with WordPress 2.x, until I have time to test and publish the new version of the plugin.

    I’m sending the same to you in the next few hours.

  40. claire wrote:

    I was just wondering how the teaser is defined for this function? I want to display a relatively short teaser, but at the moment, the full content is still being displayed. I assume this is because the character/word limit is too long?

  41. Ragman wrote:

    claire: you have to define the teaser using the <!--more--> tag in WordPress’s page editor.

    If you call the iinclude_page function with the default parameters (page id only) it will display the teaser with the “more” link. I’m using this in my home page.

    Hope that helps, let me know.

  42. Lorelle wrote:

    I’ve been looking for something like this for a very long time, and unfortunately it took comment 33 to figure out what this plugin did.

    Could you please help all of us, since Brent’s web page is gone, to understand what this plugin does? So many could benefit from it but it didn’t turn up in my searches until I was looking for something unrelated and this page turned up. I’d hate to see this skipped over for lack of a descriptive and keyword rich feature list and usage description.

    Thank you and thanks for creating such a useful plugin for WordPress.

  43. Marc wrote:

    ok i totally don’t know what to replace in the code:

    for it to insert another page/post into another page. what do i need to do? thanks.

    marc

  44. Qbs wrote:

    just wanted to say that your’s is the best plugin I’ve found it helped me VERY much!! thanks man!! cheers!

  45. Jess Planck wrote:

    I noticed that in some cases the iinclude_page plugin can catch the first $post var on pages using a “Loop”. This can cause some the_content filters to act on the iincluded_page as if it was the “first post.”

    I posted this as a resolution to a bug with EventCalendar along with a modified version of iinclude_page here.

  46. Using wordpress as a CMS, for real! - A Frog in the Valley - Technology Intelligence wrote:

    […] Improved include page […]

  47. Embedding WordPress into OS Commerce Part II wrote:

    […] In addition, starting on line 292 of this new index file, I have a switch inserted that will check for the presence of Vito Tardia’s Improved Include Page WordPress Plugin. If you install Vito’s plugin in WordPress, you can edit the iinclude_page() function call on line 294 to include the contents of any WordPress static page by simply editing the page ID in the function’s arguements. […]

  48. Copernicus wrote:

    Thank you for a great & very helpful plugin!

    Being quite new to plugin editing, I was wondering if there was a “best practices” way to call another bit of code from within the Improved Include Page plugin.

    Namely, I want to include the Technorati Tags embedded by the plugin “Bunny’s Technorati Tags.” On normal pages, one just has to add the code to the PHP file.

    Is there a way to add to the “Improved Include Page” plugin so that using the code would display BOTH the page’s contents AND the Technorati tags for that page?

    THANKS for any & all help!

  49. Ragman wrote:

    Copernicus: to add Bunny Tags to the output of Improved Include Page (IIP) you have to do 2 things:

    1. Modify Bunny Tags code By default Bunny Tags uses the current global post id. You have to edit it’s functions (get_bunny_tags first) in order to accept a custom post ID as input.

    The function to look at is get_post_custom_values (used by Bunny Tags) in the WP file “template-functions-post.php”, here’s a quick example (not tested yet):

    function my_get_post_custom_values( $key = '', $id = 0) {
        $custom = get_post_custom($id);

       return $custom[$key];
    

    }

    2. Modify IIP code to include the output of the Bunny Tags, for example:

    $content .= get_bunny_tags_list($id, $before, $after, $separator);

    Hope that helps, let me know

  50. sean the prawn wrote:

    is it possible to only have th eincluded page appear on one page only.

    ie: i want to include a page on the home page only.

    thanks in advance for any help

  51. ClickNathan - Handmade Websites » Blog Archive » How to Use WordPress as a CMS (Content Management System) wrote:

    […] Improved Include Page. Allows you to call one page from another, very useful for an introduction on the homepage. […]

  52. sean the prawn wrote:

    ok.. so i got bored waiting (post #50 ^^) and figured it out myself!

    <div class="post">
    <?php iinclude_page(4,'displayTitle=true'); ?>
    </div>
    

  53. Ragman wrote:

    sean: good you did it youself :)

    I use this the following code on this site’s sidebar:

    
    if (is_home()) {
        iinclude_page([some_id], [params]);
    }
    

    or

    
    if (is_page('blog')) {
        iinclude_page([some_other_id], [params]);
    }
    

  54. FHER wrote:

    Nice plugin!!!!!!

  55. AppleSwitcher » Useful WordPress Plugins wrote:

    […] improved include page http://www.vtardia.com/blog/improved-include-page/ […]

  56. Brenden wrote:

    What I want to do on my blog, is every few hours take the oldest post and move it to the front of the queue, all automatically. Anyone know if there is a plugin that can do this or a simple way to set up another plugin to do this (use my own feed perhaps)? Thanks.

  57. Vito Tardia | Wordpress plugin: Improved Include Page wrote:

    […] Improved Include Page è un plugin per Wordpress che consente di includere in un template il contenuto di una pagina statica con diverse opzioni di visualizzazione. Da oggi Improved Include Page ha una pagina ufficiale tutta sua. […]

  58. Vito Tardia | Nuova sezione: risorse wrote:

    […] Come prima risorsa ho trasferito in questa sezione la pagina dedicata a Improved Include Page, il mio primo plugin di WordPress che ha riscosso un discreto successo. […]

  59. aRcHitEkCi wrote:

    Hi, I guess I did everything just as instructed, and added: if(function_exists('iinclude_page')) { iinclude_page(8); }

    yet there is no results, whatsoever. The www is http://service.miejsca.org the modified index.php looks like that:

    <

    div id=”content”>

    <

    div class=”post”> Any clues? I’d really love to use it to post an intro “about” on top of posts on the front page.

  60. aRcHitEkCi wrote:

    Ooops, I guess posting got scrambled somehow… Anyway, the Wordpress in use is 2.05

  61. Ragman wrote:

    aRcHitEkCi: there was a bug in the bugfix, I’m sorry :(

    Try downloading the latest version 0.4.1.

  62. jdef wrote:

    I’m using 0.4.1, and this line seems to not work:

    $content = apply_filters('the_content', $content);

    If I comment out this line, it works, if I do it after, it doesn’t. The title works fine. The content isn’t taking theme’s style though, because it isn’t getting the paragraph tags around it.

  63. WP als CMS : El Tremolo wrote:

    […] You might also want to include Pages in various places on your site. That way, you can have an easy way to edit elements of your website. There is a plugin called Include Page that makes doing this easy. Improved Include Page (http://www.vtardia.com/blog/improved-include-page/) is a more updated version of the plugin. [edit] […]

  64. Vito Tardia | Improved Include Page, nuova versione (0.4.2) wrote:

    […] Si é reso necessario un piccolo aggiornamento per migliorare la compatibilità con alcuni filtri. […]

  65. distilled template » Blog Archive » Client: Delta Phi Omega wrote:

    […] Just finished a new site for a hot new sorority on campus! It’s a mix of AJAX and Flash. Getting Javascript to interact with Flash is pretty simple and it makes for great, easily updatable dynamic content with spiffy static content. For this site I also hacked Wordpress to be used as a CMS for quick updating of pages and posts. I had to change a few things, but the main little hack that helped me was the Improved Include Page plugin from Vito Tardia. The main reason I went with Wordpress instead of something more comprehensive like Joomla!, Plone, or Drupal is because I love it as a blogging package — I knew that the administrators of the site only needed to update text and possibly upload a few pictures, akin to ‘Pages’ functionality in Wordpress. So, there ya go. It works, it’s fast, and it’s easy on me ;] […]

  66. Oikofugic Design » Wordpress as a CMS wrote:

    […] WP as CMS Page as front page Inclued page […]

  67. Sara wrote:

    Vito, thanks, this plugin is great! I’ve used it for two clients already, it’s definitely a boon and I am glad with the straightforward functions you’ve included.

    -Sara

  68. Texter wrote:

    I also want to thank you for this great plugin!

  69. New Design - Wired Vision wrote:

    […] The Latest Web Design Projects on the sidebar is a Page which is included using the Improved Include Page plugin. The same can be said for Web Design Projects on the sidebar of the Portfolio. […]

  70. Web Development With Invisible Window {iW} » Wordpress 102 wrote:

    […] A nifty little plugin called Improved Include Page will take care of this for us. First download the plugin and install it - there is great information on how to install this plugin (and how to use it for that matter) on the download page. So we won’t go into the specifics here. […]

  71. Inserting editable text in the sidebar » wordpressgarage.com wrote:

    […] And then I found the answer: Improved Include Page plugin. I created a page with the name that should appear as the header on the sidebar. I made sure to code the header so that this page wouldn’t appear on the navigation bar by entering the following code where the navigation bar should appear: […]

  72. HELP » Blog Archive » Web Pages wrote:

    […] You might also want to include Pages in various places on your site. That way, you can have an easy way to edit elements of your website. There is a plugin called Include Page that makes doing this easy. Improved Include Page (http://www.vtardia.com/blog/improved-include-page/) is a more updated version of the plugin. […]

  73. Ron wrote:

    Ok, I give up. I think perhaps I’m misunderstanding the use of your plug-in. Originally, I use the WP admin to create a new page and wanted to add to it. Instead a new page showing links, I get the text of the code showing.

    Am I supposed to manually write a php page and then place your function in it? How do I call to show the manually created page? Could someone write me and let me know where I’m messing up?

    Sorry, about this comment. I’m just getting started. Thanks for your help!

  74. Inserting editable text in the sidebar - part II: Widgets » wordpressgarage.com wrote:

    […] In an earlier post, I wrote about my quest to find a way to easily allow users to modify text in the sidebar of a site I was creating. After trying a few different options, I happily settled on the Improved Include Page plugin. […]

  75. Ragman wrote:

    Hi Ron,

    all you need to do is:

    1. create a static page
    2. take note of your page’s ID
    3. edit the template in which you want include your page (for example sidebar.php) inserting the PHP code.

    For example, if you want to include the page with ID 5 in your home’s sidebar, you can insert the code:

    <?php if (is_home()) {
        if (function_exists('iinclude_page')) {
            iinclude_page(5);
        }
    } ?>
    

  76. Ben wrote:

    I had problems getting the title to hide. I fixed it by amending line 95, adding quotes arounf “true”:

    if($displayTitle == "true") {

    Anyone else had this?

  77. MissDanni wrote:

    Can this plugin include custom php pages within wp-pages?

    Example: test.php

    Instructions would be appreciated.

  78. 10 Manditory Wordpress Plugins | Web Development With Invisible Window {iW} wrote:

    […] Improved Include Page - This plugin allows you to include the content of a page into any template you make. This plugin allows you to include information in sidebars, etc. and gives you the ability to edit them right from the admin. hhttp://www.vtardia.com/improved-include-page/ […]

  79. orbitalvoice.com » Including a Page wrote:

    […] You might also want to include Pages in various places on your site. That way, you can have an easy way to edit elements of your website. There is a plugin called Include Page that makes doing this easy. Improved Include Page (http://www.vtardia.com/blog/improved-include-page/) is a more updated version of the plugin. […]

  80. Michael Sky wrote:

    Great plugin. I use wordpress more as a content management system than blog, and this plug in makes it all work.

    Just one problem. As a few other commenters requested:

    is there a way to have an “edit this” link show up that will take a logged-in user to edit the page in question?

    thanks

  81. Ragman wrote:

    Michael: to enable the ‘edit’ feature in this version you have to modify the source code.

    Insert this code after line echo $content;(this functions in WP 2.x):

    if ( current_user_can('edit_pages') ) {
        echo "<a href='" . get_bloginfo('wpurl') . "/wp-admin/post.php?action=edit&amp;post=$post_id' class='edit'>" . __('Edit') . "</a>";
    }
    

  82. WP Plugins DB » Blog Archive » Improved Include Page wrote:

    […] Visit […]

  83. Mark wrote:

    Nice plugin indeed, work with WP2 pretty good

  84. Vic wrote:

    Thanks very clear and precise no problem installing

    Vic

  85. Dave wrote:

    Is there any way to display just the title of a page and nothing else?

    Thanks, I love this plugin. Simple and clean.

    Dave

  86. Ragman wrote:

    Hi Dave,

    at the moment there isn’t a way to display only the title. You can use the WP tag wp_list_pages().

  87. Mimetic » Storelicious » Premium Themes para WordPress, phpBB y otros wrote:

    […] Mimetic incluye mootools que nos permite colapsar los elementos de la sidebar, así como el buscador. Una característica partícular que tiene este theme es que incluye el plugin improved include page con el cuál podrán mostrar la información de alguna página en el header de su theme que se desplegará al dar clic en el icono de usuario y que esta se define desde su panel de administración del theme. […]

  88. Mimetic | Infected-FX| tutoriales, recursos y referencias para desarroladores y diseñadores web wrote:

    […] Trae integrado el plugin Improved Include Page para mostrar la página que desees en la parte de arriba que se expande al dar clic en el icono de usuario. Así como su pequeño panel de configuración usando Theme Tool Kit ;) […]

  89. Martino wrote:

    Cool plugin! I’ve been searching for this. Thanks a lot! MARTINO :)

  90. Jim Amos wrote:

    If anyone is interested: I find this plugin very helpful, but for a few reasons I prefer to call pages using the pagename rather than id - especially when switching between local and production installs of a website running wordpress as a CMS. One way to do this is to make a call first to the wpdb, please note that $pagename is based on the page slug, not the actual page title. So you might have a function that calls the iinclude function like so:

    function someFunction(){ global $wpdb; $name = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name='homepage-image'"); if(function_exists('iinclude_page')) iinclude_page($name); }

  91. Jim Amos wrote:

    Hit post too soon. In the comment above I meant post_name (which actually is the pagename for a wp page) not $pagename. Also, in the $name variable the post_name of homepage-image would be where you put your own page you want to call eg post_name=’about’ etc

  92. David wrote:

    This great plugin. He help me create my page

  93. Improved Include Page plugin .: CREATIVE SLICE .: Green Website Design wrote:

    […] To find out more about the Improved Include Page plugin please visit vitoTardia.com >> […]

  94. scompt.com » Zensor 0.7 Released wrote:

    […] Added fix to work with Improved Include Page plugin. Thanks, Vincent! […]

  95. Justin Dohrmann // low-quality.net » Scrivenings.net wrote:

    […] I also installed a few plugins to make both mine and Scriv’s lives easier: A plugin to batch edit the imported posts (buggy but still a lifesaver and something I think Wordpress should be able to do out of the box). A plugin to include an “About” page in the sidebar so Scriv doesn’t have to edit the code to change his “About Me.” Finally, I installed execphp which allows several custom php-based widgets for the widgetized sidebar. I’ve never used a widgetized sidebar before but I dislike how difficult it is to modify the tags in one, so this made things so I didn’t have to dig into the wordpress admin files and change anything. (If it were my own site I would have turned the widgets off completely and edited my own code, but since I am doing this for someone else I thought it was important to make things fairly easy for Scriever to change on his own.) […]

  96. Improved Include Page plugin .: CREATIVE SLICE, Green Website Design wrote:

    […] To find out more about the Improved Include Page plugin please visit vitoTardia.com >> […]

  97. Igor wrote:

    Ciao. Scusami ma sono ancora un pò inesperto di Wordpress. Ho seguito le tue indicazioni per l’installazione del tuo plugin el’ho attivato. Volevo chiderti se il plugin serve per aggiungere del testo statico o delle pagine statiche? Se è la seconda, questa vanno create a priori e quindi dove inserisco il codice:

    ’); ?>

    Grazie.

  98. denny wrote:

    Is there a way to keep multiple includes from repeating other default information?

    I am using to include multiple pages to sub footers on my site.

    I am also using Easy Pay pal and when easy paypal kicks the user to the default sign up page, the registry form repeats itself throughout all of my includes? Is this a better iinclude or Easy Paypal issue?

    signed~ confused and stumped….

  99. brar wrote:

    well iam using this code in my orkut related website:

    <

    p> Just Copy and paste this HTML code in Friend’s Scrapbook or Commentbox: : “>Forward This Picture

    i want that when i create new page like “about” the code should not be used in that page can any one help me in its coding

  100. Ragman wrote:

    Hi denny: you can tune the display of IIP using the optional parameters.

    I think that the problem with EasyPaypal is due to the fact that it acts as a content filter. IIP processes content filters so it will includes also your paypal details.

    The 2 solutions are:

    1. remove easypaypal tags from your includes
    2. editing IIP code in order to remove and re-add the easypaypal filters (see code sample below)
    3. function iinclude_page(...) {
          remove_filter('the_content', 'EasyPayPal_the_content');
          remove_filter('the_content', 'EasyPayPalButton_the_content');
      
      /* other IIP code */
      
      
      add_filter('the_content', 'EasyPayPal_the_content');
      add_filter('the_content', 'EasyPayPalButton_the_content');
      

      }

  101. Laurelle wrote:

    I am trying to get the iinclude_page to work without a title and to display the full content of the page. I am using this code: I have tried the other constants for displayStyle as well.

    What I keep getting out is the first paragraph and then This is a preview of "" . Read the full post.

    Is there a way to get iinclude_page to show all of the paragraphs of the page without the Read full post link?

  102. Laurelle wrote:

    Here is the code for that last comment:

    if(function_exists('iinclude_page')) iinclude_page(9,'displayStyle=DT_FULL_CONTENT'); in the php tags.

  103. Zensor_Wordpress plugin wrote:

    […] Added fix to work with Improved Include Page plugin. Thanks, Vincent! […]

  104. 300 Adet Wordpress Eklentisi : Y?lmaz Eres wrote:

    […] 292) Improved Include Page Eklenti sitemizde olu?turdu?umuz ileti?im, hakk?nda gibi sabit sayfalar?m?z? ister anasayfaya ister tekil yaz? sayfas?na ili?tirmemizi sa?l?yor. […]

  105. Ragman wrote:

    Hi Lorelle,

    the code you are using is right. In my test platform it works and does what it’s supposed to do: display the full content of the page without title.

    Maybe on your site there is some conflict with some other plugin or filter applied to the post/page content.

    Could you please tell me the version of your WP and the plugins you installed?

  106. scot hacker’s foobar blog » Notes on a Massive WordPress Migration wrote:

    […] Improved Include Page: Occasionally, you’ve got some template or sidebar element to which you want to give site administrators access while protecting them from editing template code directly. iinclude_page() lets you create a WordPress page and have its contents inserted at any place in a template. On CDT, we use it to let the editors manipulate the Bookshelf sidebar graphically, without mucking around in code. […]

  107. Clark Buribdge wrote:

    This plugin is listed in the WP Codex as one that is useful in setting up a gallery. I have a page structure that I would like to use as a gallery and think this pluigin is the key, but I can’t quite put my finger on it. Is there a way to include pages dynamically. From the wordpress code could you send all the sub page IDs of a parent to this plugin in a loop to display the content of each subpage in a parent page? I would like to avoid having to make a gallery then go to it’s parent page and insert the plugin code with the specific page ID.

  108. Clark Buribdge wrote:

    Forgot to include the WP Codex link from the above post. http://codex.wordpress.org/Photoblogs_and_Galleries

  109. Ben wrote:

    I was using this plugin for my homepage. When I upgraded to WP2.3.3 it stopped working, has anyone else had this problem? It worked fine with 2.3.1

  110. Ben wrote:

    One more question:

    Is there a way to show the content of the current page? I would like to use the same template for more than one page, so instead of entering a unique page ID, it would be useful to have a function that would return the current page ID.

    Any ideas?

  111. The Accurate Way of Using WordPress as a Content Management System : Deshoda wrote:

    […] The Improved Include Page, is a kind of plug in that permits a user in identifying one page from another; this plugin is useful for an introduction of the homepage. […]

  112. Ragman wrote:

    Hi Clark,

    I used this trick on my site to include a series of subpages:

    <?php 
        //Getting last 10 posts ordered by date descendant
        $posts = get_posts('numberposts=10&order=DESC&orderby=post_date');
        foreach($posts as $post): 
        setup_postdata($post);
    ?>
            <div class="entry">
                <?php iinclude_page($post->ID)?>
            </div>
    <?php endforeach; ?>
    

    You could also write a function that returns all the subpages for a given post using this query:

    $pages = $wpdb->get_results ("SELECT ID FROM $wpdb->posts WHERE post_parent = $parent")
    

    and use it in the foreach loop.

    Hope that helps

    — Vito

  113. Adding WP Pages to Your Feed, Continued | Dharmarketing wrote:

    […] The scraped page is http://www.yogawithsantosh.com/pages/, which I built using a page template. The Improved Include Page plugin made it easy to create the list of pages with extracted content, though I had to modify it a bit. […]

  114. baron wrote:

    hi there.com plugin but :

    Does anybody know if tis script is compatible with Wordpress 2.5?

    Thanks in advance for any help on this!

    turkbaron

  115. claudio wrote:

    Questo plugin è compatibile con l’ultima versione di wordpress? Perche a me sta dando dei problemi. Grazie Claudio

  116. Vito Tardia | Improved Include Page and Wordpress 2.5 wrote:

    […] Although the current version of IIP seems to run well on WordPress 2.5, I’m working on a new version to add support for the new WP Shortcode API. In the meantime, please let me know if you experience compatibility problems with the current version. […]

  117. » Wordpress come CMS: includere una pagina statica in un template » Blogg ‘R wrote:

    […] ? Improved Include Page Stampa  (Nessun Voto)  Loading … Tags: CMS, pagine statiche, plugin, tutorial, Wordpress& C., Wordpress come CMS da pi3tr0 »  Commenta Articoli Simili: » 100 temi per Wordpress.» Il riassunto in Wordpress: the_excerpt» Title: personalizzare il titolo della home page» Templatr: un generatore di temi per Wordpress» Rendere gli indirizzi delle pagine graditi ai motori come Google» Wordpress 2.5 in italiano» Wordpress 2.3.2: aggiornamento urgente […]

  118. links for 2008-04-20 wrote:

    […] Wordpress plugin: Improved Include Page | Vito Tardia (tags: blogging cms code plugin webdev wordpress) […]

  119. baron wrote:

    hi there plugin but :

    Does anybody know if tis script is compatible with Wordpress 2.5?

    Thanks in advance for any help on this!

  120. baron wrote:

    hi. oke ,no problem. Thanks for plugin

    perfect.

  121. Free Photo Blog Scripts | Scrap For Dollars wrote:

    […] WordPress Include Page Plugin […]

  122. Alessandro Baffa.it » Let Wordpress be more AJAXed wrote:

    […] La stringa in php che vedete include il contenuto di una pagina all’interno di un’altra. Questo mi è possibile grazie ad un plugin che permette di farlo e che trovate qui. In questo modo, se creerete tanti DIV quante sono le vostre pagine e copierete questi codici per ognuna delle voci del menu, avrete degli effetti come quelli che vedete in questo mio blog. […]

  123. Nick wrote:

    hi, i’m getting an error when attempting to activate your plugin:

    Fatal error: Cannot redeclare iinclude_page() (previously declared in …iinclude_page.php on line 72

    that line is the function iinclude_page i see, but what am I doing wrong? I shouldn’t need to modify any of that code, should i?

    I’m on WP 2.5 with PHP4 (not 5).

    thanks! sounds like a good plugin idea!

  124. baron wrote:

    hi there .thanks for plugin:

    Does anybody know if tis script is compatible with Wordpress 2.5.1?

    Thanks in advance for any help on this!

    best regards

  125. Improved Include Page - Come aggiungere una pagina statica in Wordpress | //Roberto Mazzucchelli wrote:

    […] Fonte:vtardia.com Tags: plugin, Wordpress […]

  126. WP 2.5 Update: How to Use Wordpress as a Membership Directory - Cagintranet Web Design wrote:

    […] Improved Include Page - To insert the ads […]

  127. Vito Tardia | Improved Include Page aggiornato alla versione 0.4.4 wrote:

    […] La versione corrente funziona con WordPress a partire dalla versione 1.5.3 fino alla 2.5.1 e aggiunge il supporto per la nuova Shortcode API di WordPress. Vi rimando all pagina ufficiale del plugin per maggiori dettagli. […]

  128. » Hello world! wrote:

    […] You might also want to include Pages in various places on your site. That way, you can have an easy way to edit elements of your website. There is a Plugin called Improved Include Page that makes doing this easy. […]

  129. PhotoBlogging - OddJob’s IT WebLog wrote:

    […] WordPress Include Page Plugin […]

  130. cat 2 :: SwimCart - Swimwear and Swim Equipment wrote:

    […] In addition, starting on line 292 of this new index file, I have a switch inserted that will check for the presence of Vito Tardia’s Improved Include Page WordPress Plugin. If you install Vito’s plugin in WordPress, you can edit the iinclude_page() function call on line 294 to include the contents of any WordPress static page by simply editing the page ID in the function’s arguements. […]

  131. Tzaddi wrote:

    Thanks for your plug-in, I find it quite useful.

    re: the suggestion above in comment #97. I found that in WP 2.6 revisions are stored as children of the post, so unfortunately all the revisions are returned from this query $pages = $wpdb->get_results ("SELECT ID FROM $wpdb->posts WHERE post_parent = $parent")

    Here is what I used in a sidebar to include the contents of a child page dynamically: $parent_id = $wp_query->get_queried_object_id();

    $pages = $wpdb->get_results ("SELECT ID FROM $wpdb->posts WHERE post_parent = $parent_id AND post_type != 'revision'" );

    foreach($pages as $page): setup_postdata($page); if(function_exists('iinclude_page')) iinclude_page($page->ID);

    endforeach;

    If anyone has suggestions to improve that, fire away :-)

  132. Ragman wrote:

    Good tip Tzaddi, thank you :)

  133. Lee wrote:

    Fantastic plugin Ragman!

    Can you please outline how to enable the “edit this” feature for the latest version of your plugin?

    I have tried the method you outlined to Michael (post 72 above) but can’t seem to find “echo $content;” in the source code at all…

    Thanks!

  134. Ashish wrote:

    Hi, I am using the plugin to include a page that uses custom fields for product images. However the included page excludes them. Is there any way to show the included page WITH the custom fields? Thanks Ashish

  135. Ashish wrote:

    Or maybe able to use the page url instead of the page ID?

    Thanks - Ashish

  136. Ashish wrote:

    HI,

    I tried using the page path for ID but it doesn’t work :( and there seems to no documentation about how to specify the path - whether it be from the root, should be the absolute permalink or something else. I am using Wp 2.6.5 and whatever I specify as the path throws an error like this

    “Warning: constant() [function.constant]: Couldn’t find constant id=\”sample-permalink\”>\”/media<span in /home/sapling/public_html/apsl/wp-content/plugins/iinclude_page.php on line 104”

    Please help!

  137. Ragman wrote:

    Hi Ashish,

    you can use the page URL on WP 2.1 or better using the syntax:

    iinclude_page(‘/page/uri’, [other params]);
    

    Regarding custom fields, IIP doesn’t care of them at the moment. They are stored in the ‘postmeta’ table and you can access them using the functions described at: http://codex.wordpress.org/Using_Custom_Fields.

    You could duplicate IIP creating a version that includes custom fields or you could try the Wordpress Portal plugin by Davide Casali: http://digitalhymn.com/argilla/wpp/.

    Hope that helps

  138. Scott wrote:

    In WP 2.7, “iinclude” plugin seems to include posts/pages that are marked as draft/pending review.

    What’s the best way to first tell wordpress to check if the post has a status of “published” before it tries to inlcude the page?

    Scott

  139. Ragman wrote:

    Hi Scott,

    I’ve fixed it. Version 0.4.6 includes only static pages with status ‘published’.

    — Vito

  140. Scott Offord wrote:

    Ragman, Thank you! I appreciate your help with that.

    Scott

  141. Scott Offord wrote:

    Ragman,

    I see that you’ve fixed the “published/unpublished” issue, but now I can not include “Posts”.

    From what I remember, Version 0.4.5 seemed allowed including “Posts” or “Pages”.

    Version 0.4.6 only seems allows the inclusion of “Pages”.

    Can you make an update that allows this?

    Thanks! Scott

  142. Scott Offord wrote:

    Also, this post: http://www.vtardia.com/blog/improved-include-page/ seems to be the only page to leave comments about this plugin, but the official plugin page points here: http://www.vtardia.com/improved-include-page/

  143. rasko wrote:

    Hi, Love the plugin but can’t seem to get the “DT_TEASER_MORE” or “DT_TEASER_ONLY” working properly. I’m using this code: if(function_exists('iinclude_page')) iinclude_page(6, 'displayStyle=DT_TEASER_MORE&more=More information »');

    It still displays the entire page content. Is there a way to set a word count or something?

    Thanks, Ras

  144. Michael wrote:

    Hi. This plugin has been a really useful tool, but the upgrade to 0.4.6 now prevents content from “Privately Published” pages from being included on pages. I use WordPress to make a static website, and sidebar and menu content need to be pulled in from “Private” pages; I don’t want Google spidering pages of what amounts to partial content. So being able to use Private posts is very important. Thanks for the very good work!

  145. Ragman wrote:

    Rasko: you need to insert the <!--more--> tag in your post/pages to use these options or the plugin will display the full content.

    — Vito

  146. Philip wrote:

    @Michael: I succeeded with this:

    if(function_exists('iinclude_page')) iinclude_page(122, 'allowStatus=private');

    Would been helpful though if the usage of allowStatus was explained in the readme.

  147. Scott Offord wrote:

    Vito,

    I see you’ve been busy upgrading this plugin. That’s great to see. Thanks for all of your work. I notice that the only way to find your plugin in the new “Plugin Browser/Installer” is to search by plugin author, “vtardia”. I think your plugin will gain much more popularity if it can be found more easily in the Wordpress plugin directory. If there are tags or other content you can fill out in the plugin page, that would probably help a lot!

    Scott

  148. Scott Offord wrote:

    This plugin still doesn’t seem to work for “posts”, I can only get it working for “pages” to be included.

  149. Ragman wrote:

    Scott,

    the “allowType” parameter works for WordPress 2.5 and higher. To include post and pages use allowType=page,post.

    Your’re right about the tags. I was thinking about adding the tags “content, include, posts, pages”, what do you think?

    — Vito

  150. Mr Vertigo wrote:

    Hi, thanks for your great plugin but I have a problem.

    I have include this following source code in my homepage : http://demoespaceweb.free.fr but the text is displaying completely. The “DT_TEASER_MORE” does not work for displaying only the first lines of my text

    [include-page id="40" displayTitle="true" displayStyle="DT_TEASER_MORE" titleBefore="

    ” titleAfter=”

    ” more=”continue»”]

    Prehaps I must activate something on the plugin source code ?

    Somebody can help me to find the issue ?

    Many thanks, Mr Vertigo

  151. Erik Harris wrote:

    I’m trying to use this plugin, but I’m not finding the shortcode to work at all. I’m using WordPress 2.7 with the HTML editor (visual editor disabled on my account), and I simply see the shortcode contents. When I use:

    [include-page id="2" displayTitle="false" displayStyle="DT_FULL_CONTENT_NOTEASER"]

    I see exactly that string. It doesn’t include page 2. You can see what I’m talking about at the bottom of a test page on my test blog.

    I also asked this question on wordpress.org.

  152. CJ wrote:

    I want a page to show inside a page using your function, but I don’t want it to show in the WordPress menu. Is the only way to do that to create the page as private? Will private show up in the menu when I’m logged in?

  153. Erik Harris wrote:

    I’m having the same problem as Mr. Vertigo. I posed a question about it, but because I included a link to an example of the problem (and a second link, I think), it was marked as potential SPAM and is stuck in your moderation queue. This plugin claims to do exactly what I want, but I can’t get it to do anything at all.

  154. Ragman wrote:

    Mr Vertigo: the DT_TEASER_MORE option works only if you have defined the teaser using the ` tag.

  155. Ragman wrote:

    CJ: you can use several options or tricks.

    You can use private or draft pages to to the job.

    For a past client I used a first level page called ‘chunks’ and placed all content snippets on sub pages.

    Then I edited the theme for excluding the ‘chunks’ page from the page menu.

    You can also use the Page Link Manager plugin to edit your menus.

  156. Ragman wrote:

    Hi Erik,

    IIP returns an empty string if something goes wrong, from the test page I see that the shortcode is not parsed.

    Maybe there is some conflicting plugin. Have you tried disabling other plugins?

  157. Daniela Lizst wrote:

    Hi Vito, tanks to you for great plugin. Missing only one functionality: link for page title. Do you plan this in the future?

    Daniela

  158. Claudiu wrote:

    bunch of thanks for this plugin. it has been of great help. thank you thank you thank you

  159. Erik Harris wrote:

    Ragman,

    It would appear that your plugin conflicts with Exec-PHP (or vice versa). I disabled it, and get the title of the page I’m trying to include.. However, the string I’m using is this:

    [include-page id="2" displayTitle="false" displayStyle="DT_FULL_CONTENT_NOTEASER"]

    As I understand it, that should include everything BUT the title. I’m simply getting the title. If I change it to [include-page id="2"], I get exactly what I want. The full page without the title. Fortunately, I don’t need Exec-PHP for anything else right now, so I can disable it, but it’d obviously be nice if the two plugins were compatible.

  160. Ragman wrote:

    Hi Daniela,

    it wasn’t there bacause I didn’t need it, but it’s a good idea for the future, I’ve already added to the list.

    Thank you

    — Vito

  161. Ragman wrote:

    Erik,

    the fact that the title is displayed using displayTitle="false" in the shortcode is a bug. I will fixit in the next version.

    In the meantime you can simply omit the attrtibute an the title should not be displayed.

    — Vito

  162. Matt Darcy wrote:

    Is it possible to use this function to include non-wordpress post related content

    eg: iinclude-page static_info.html rather than iinclude-page id=4

  163. Ragman wrote:

    Hi Matt,

    currently is not possible to include external static pages, just WordPress pages.

    I’ve added this feature to the list for the future, it sounds an interesting option.

    — Vito

  164. 2046 wrote:

    hello man is there way how can I recode the plugin in the way that it creates the title as a link to the page? I know the plugin has a possibility to make a link to that page via more, but that’s not what I actually need. I have tried to look at your code but seams I do not understand it enough.

    thanks Jan

  165. fuzzonce wrote:

    Ciao Vito

    complimenti per il plugin, notevole.

    Ho notato che il sistema aggiunge dei tag

    <

    p> per contenere gli h2 e tra h2 e corpo dell’estratto. Hai riscontrato anche tu?

    ciao e grazie F

  166. Ragman wrote:

    Hi Jan,

    this feature will be included in a next version, but if you want to play a little bit you can customize lines 135-142 where the title is added to the output string.

    You can use the builtin get_permalink() function to get the page URL (see line 245).

    Hope that helps

    — Vito

  167. Ragman wrote:

    Ciao fuzzonce,

    a me non è mai capitato perchè uso di rado la versione shortcode e non uso l’editor HTML, ma mi affido a Markdown.

    Credo che sia dovuto al filtro di default wpautop che WordPress applica al contenuto per evitare di dover gestire i tag <p> all’interno dei post.

    Nel file wp-includes/shortcodes.php viene aggiunto il filtro do_shortcode con priorità 11, specificando che questo avviene dopo wpautop.

    Una soluzione possibile può essere modificare la proprità del filtro do_shortcode, controllando che non abbia effetti negativi su altri plugin.

    — Vito

  168. kamal wrote:

    Hi, and thanks sor sharing ur knowledg, i have some questions : 1 - How i can display only the title of page? 2 - Is it possible to display some think like : “Title++content”?

    thanks for help.

  169. Pat wrote:

    This is terrific! It does exactly what it says it should and just what I needed.

    You don’t happen to have a good plugin that just does the last x posts do you?

  170. Ragman wrote:

    Hi Kamal,

    1. it’s not possible with IIP, but if you edit the template file you can use WP API wp_list_pages()
    2. yes, it’s possible, you can control the title HTML using titleBefore and titleAfter parameters and include che function or shortcode in a custom DIV.

    Hope that helps

    — Vito

  171. Ragman wrote:

    Thank you Pat.

    Maybe Davide Casali’s Wordpress Portal plugin can do what you need. You can find it at http://digitalhymn.com/argilla/wpp/.

  172. Whit wrote:

    Hey Vito,

    I just wanted to clarify what you told Erik in comment #161 - you’re saying that there’s no way to not display the page title in the area rendered by the include? I’m using your plugin to drop text into a sidebar that needs to be editable by my client. Currently I have to keep the page title (from within the WP Dashboard) blank in order to prevent it from showing up in the nav bar (the actual page titles don’t appear on any pages). Is there no way I can use an actual page title from within the Dashboard that won’t appear on the rendered page? Setting it to private/published doesn’t work - the included page vanishes.

  173. 2046 wrote:

    again, please delete my previous comments.

    if you want title as a link here is a txt with the solution http://o——o.info/wp-content/uploads/iinclude_page.txt

    rename it to php and replace the original file…don’t forget to make a backup of the old one

  174. Ragman wrote:

    Hi Whit,

    simply don’t use the displayTitle argument and the title will not be displayed.

    — Vito

  175. Ragman wrote:

    Hi 2046,

    your comment(s) are fixed, thank you!

    — Vito

  176. Whit wrote:

    Hi Vito,

    I’m not getting the result you’re describing, but I did find a work-around to the problem. When I eliminate the “title” argument from the PHP call I still get the page title showing up in the navigation of my site (the title above the rendered code wasn’t the problem). However, if I take advantage of the before/after attributes then I’m able to add “display:none” as a CSS style, thereby effectively deleting it from the rendered page. Thanks anyway! :)

  177. Martin Arrand wrote:

    Hi Vito,

    Your plugin was just what I needed. I had some problems with compatibility with the Sociable plugin (adding ugly social bookmark links to my included pages), but searching through the code I noticed the commented-out code for compatibility with the EventCalendar plugin.

    I followed the same strategy and all works perfectly now.

    For reference, the extra lines would be:

    remove_filter('the_content','sociable_display_hook');

    // Apply filters for Polyglot … add_filter(‘the_content’,’sociable_display_hook’);

    Hope that helps anyone struggling with the same problem.

  178. John wrote:

    Hello I have a music blog and I used your plugin which is very cool ! thanks

    I want to do something but i have no idea to do it. In my blog i have post where i write music news and pages where i have artists pages like bio, info about artists.

    And I want to createa page where you can find a excerpt + link to the artist page of every artists.

    thanks for everything if you have an idea

  179. Patrick wrote:

    I was able to get the plugin to work however, I only want the home page to have the include and not ALL pages. Right now, not matter what page-id I’m on, I still see the include of page 5 no matter where I am in wordpress.

    Is there any code can I use to have it only appear once and not populate on every wordpress page on my site?

  180. Ragman wrote:

    Hi John,

    there are a couple of methods to do what you need. You can use the Wordpress Portal plugin (see comment #171 for the URL) or the get_pages function builtin in WP.

    You can find a nice example at: http://codex.wordpress.org/Function_Reference/get_pages

    — Vito

  181. Ragman wrote:

    Hi Patrick,

    you can use the conditional WP tag is_home() in your template. For example:

    <?php if (is_home()) iinclude_page($mypage_id)?>
    

    Hope tha helps.

    — Vito

  182. Urso wrote:

    How do I define a teaser in a header, it displays the whole text while i want to have only a short teaser instead?

  183. Ragman wrote:

    Hi Urso,

    you have to insert the <!--more--> tag to have the teaser. If you don’t the plugin will display the full text.

    — Vito

  184. andrew wrote:

    this is one of the best, most useful plugins there is. period.

    with this plugin and a functions.php file (and some extra CSS styling) — you can turn wordpress into a completely dynamic CMS solution via the pages admin menu.

    it basically turns the pages menu into another widgets panel — and think about how easy it is for a client to manage things from the pages menu.

    ANYTHING you display in a page — images, links, copy, tokens from other plugins (like Subscribe2 as my main example) — will be displayed wherever you add the call to this plugin.

    this plugin solves so many potential road blocks it blows my mind.

    forget everything you thought you knew about the limitations of wordpress…. with this plugin installed your site just became that much more dynamic.

    kudos.

    -a

  185. Simon wrote:

    Hi 0 is there anyway I can call in ALL pages?

  186. Ragman wrote:

    Hi Simon,

    maybe IIP is not the right solution to your problem. It runs a query for every page and could easily stress your database in case you have too many posts.

    The cleanest way could be a custom template calling a custom query to retrieve all posts/pages at a time and then output them calling the right filters.

    Hope that helps

    — Vito

  187. Marcelo wrote:

    Hi! This plugin looks good!

    Is there any way to display last five published pages for example?

  188. Michael wrote:

    Thank’s for this it’s just what I needed. Very simple to use.

    Keep Up The Good Work !!!!

  189. Rick Lupert wrote:

    Would like to echo Matt’s earlier query on wanting to include non-wp html pages with this plug in. I’m in the process of switching my site from static html to WP and have a link directory with thousands of links in it…would be much easier for me to include that info and continue to update using my existing system via this plug in rather than trying to migrate everything to a non-existent wp link directory.

  190. Ragman wrote:

    Hi Marcelo,

    you can try with WordPress Portal (see the link above) or play a bit with the wp_list_pages API.

    — Vito

  191. Ragman wrote:

    Hi Rupert,

    I’ve already added this to the requested features, but I can’t promise a release date now.

    It’s better try with plugins such ExecPHP and use standard includes in your pages or templates for the moment.

    — Vito

  192. Karl wrote:

    Hi and thanks for the plugin, it’s very handy!

    I was looking for a way of just displaying the title of a page and was reading in the comments that it wasn’t possible, but to use wp_list_pages instead. As I did a quick search, using the WP get_the_title would be simpler, as you can pass it a unique ID. Just thought someone else might find that useful in case they come here looking for the same thing as I did.

  193. Michael Kay wrote:

    Since media uploads in the library are defined by the same ID system as pages and posts, is there a way to include those with iinclude_page ?

  194. Jeff wrote:

    A nice feature would be to can include widgets into posts with improved-iclude-page. Jeff

  195. Ragman wrote:

    Hi Michael,

    in theory is possible using the ‘allowType’ feature set to ‘attachment’ and the ID of the media post, but I didn’t try yet. Did you?

    — Vito

  196. Ragman wrote:

    Hi Jeff,

    a widgetized version of IIP is in program.

    If you instead mean a shortcode to include widgets in posts it’s an interesting idea but for another plugin.

    — Vito

  197. Alex wrote:

    Ciao e complimenti per il plugin, veramente interessante. Una domanda! Come faccio ad includere una pagina e i suoi campi personalizzati?

    Esempio: ho creato una pagina con flutter. Come la faccio a caricare, campi personalizzati compresi, con il tuo plugin?

  198. Ragman wrote:

    Ciao Alex,

    con la versione attuale non è possibile includere i campi personalizzati, viene recuperato solamente il contenuto della pagina/post.

    Però se hai voglia di sperimentare puoi recuperarli con la API apposita che trovi descritta sul Codex.

    — Vito

  199. D. C. Toedt wrote:

    Nice plug-in Vito.

    A minor fix: In my WP 2.8 installation, yYour example of text to include in a post needed an escaped forward slash for the close-heading tag.

    Wrong: [include-page id="3" ... titleAfter="" ... ]

    Right: [include-page id="3" ... titleAfter="<\/h3>" ... ]

  200. Mark wrote:

    For some reason I can get the plugin to function perfectly inside of wordpress with the [include-page id=”123”] code but when trying to implement the php code into the index.php file it screws up everything and nothing shows up but the header?

  201. Helene wrote:

    When I put » in the more string in the shortcode, this character does not appear. I think it’s because of the way the plugin parses the shortcode parameters, but I’m not sure. The character does appear if I leave the default more string in place. Anything to be done about this? Thanks very much.

  202. RT wrote:

    Hi, I have this working OK in a template file using 2.8 and K2.

    Is it possible to use this to call in excerpts of all children of a specific page?

    Thanks a mill.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>