Vito Tardia
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: Troubleshooting Improved Include Page Plugin problemHallo,
some hosting services may disable file inclusion over HTTP. The right steps are:
- use
require_onceto link your WP installation - use an absolute or relative filesystem path to
wp-blog-header.php - use the IIP’s
allowStatusoption if the page to include is not a published page (eg. draft or private)
Below you can find a tested example of code:
<?php session_cache_limiter('none'); session_save_path("/Some/path/to/PHPSessions"); session_start(); require_once '/path/to/wordpress/wp-blog-header.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Test for WP IIP</title> </head> <body> <h1>Hello World!</h1> <?php if (function_exists('iinclude_page')) iinclude_page('/somepage', 'allowStatus=private,publish') ?> <small>page ends here.</small> </body> </html>Hope that helps
—
VitoForum: Plugins
In reply to: [Plugin: Improved Include Page] Only display Page body, not title?Hi erick,
you can use this code to show only page content:
<?php iinclude_page(4); ?>
—
VitoHi Steve,
IIP applies all content filters when including a page/post content. A quick workaround could be remove the filter and re-attach it before returning.
I’m doing this on a few filters that give problems.
—
Vito - use
Viewing 3 replies - 1 through 3 (of 3 total)