i4w_include
Usage
This shortcode provides the same functionality as the regular PHP include functionality but as a shortcode within a page or post.
The file system path can be specified as either (a) the full path from the system root or (b) the relative path from the web document root.
[ELSE_include] conditional branching is NOT supported.
Shortcode nesting is NOT supported.
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| file | The file name with its file system path. | None | Yes |
Example
Shortcode
[i4w_include file='/full/path/to/my/file.php']
Shortcode
[i4w_include file='relative/path/to/my/file.php']