Skip to content

i4w_include

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.

ParameterDescriptionDefaultRequired
fileThe file name with its file system path.NoneYes
Shortcode
[i4w_include file='/full/path/to/my/file.php']
Shortcode
[i4w_include file='relative/path/to/my/file.php']