Include

Include

from 0$

Include is a Package Installer from the Open Source WP Plugins range Include one Page or Post into another.

For more information about a tailored Package Installer like Include please contact us directly.

The Include plugin for WordPress allows you to include the content of one page, post, or other such WordPress object into any other with a shortcode.

Shortcode: [include]

Parameters

  • id: the page/post/etc id to use
  • slug: the page slug to use to find the ID
  • title: the type of element to wrap the title with. If set to “” no title will be displayed.
    • Default: h2
  • title_class: a class to assign to the title
  • wrap: the type of element to wrap the entire include area with. If set to “” no wrap will be applied.
    • Default: div
  • wrap_class: a class you want assigned to the wrap.
    • Default: ‘included’
  • hr: Display a hr before the include. Set to “” to not display the hr.
  • recursion:
    • Options:
    • strict: only show first page, do not run [include] if it’s included
    • weak: only filter out shortcodes with the same id as the current shortcode to prevent infinite loops
    • Default: weak

Depreciated Parameters

These parameters are depreciated, but still supported (for now).

  • title_wrapper_elem: old name for title
  • title_wrapper_class: old name for title_class

Example

[include id="XXX" title="true" title_elem="h2" title_class="include-title" hr="" recursion="weak" wrap="article" wrap_class="news"]
[include slug="hello-world"]

A shortcode that includes other posts / pages with no nesting of the shortcode, to allow for multiple pages to call each other so that they display their chunks in different orders.

Shortcode: [include_children]

Parameters

  • id: the page/post/etc id to use
  • slug: the page slug to use to find the ID
  • title: the type of element to wrap the title with. If set to “” no title will be displayed.
    • Default: h2
  • title_class: a class to assign to the title
  • wrap: the type of element to wrap the entire include area with. If set to “” no wrap will be applied.
    • Default: div
  • wrap_class: a class you want assigned to the wrap.
    • Default: ‘included’
  • hr: Display a hr before the include. Set to “” to not display the hr.
  • recursion:
    • Options:
    • strict: only show first page, do not run [include] if it’s included
    • weak: only filter out shortcodes with the same id as the current shortcode to prevent infinite loops
    • Default: weak

Depreciated Parameters

These parameters are depreciated, but still supported (for now).

  • title_wrapper_elem: old name for title
  • title_wrapper_class: old name for title_class

Same as Include, except that if no ID is given, it includes all child pages of the current page, in order.
If an ID is given it includes the child pages of that page, in order.

Upgrade Notices

4.0.24

  • Removed fopen dependancy to allow for compatability with more servers

4.0.14

  • Requires Server Setting: allow_url_fopen

4.0.3

  • PHP Version Requirement: >= 5.4.0

4.0.0

  • Please make sure you know what your options are before you update this plugin, as the update may lose those options. Sorry, this is a complete rewrite of the plugin.

3.4.41

  • Fixed Tag Overriding Error

3.2

  • Fixed Bug: Title remained constant across multiple includes.

3.1

  • Fixed bug: Lack of support for custom post types.

3.0

  • Now works with Posts again.

Download & install the zip archive

The plugin package installer can be downloaded from the WP2E project tab called “code”.

1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.

2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.

3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.

Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.

Include

typePlugin
version4.0.24
descriptionInclude one Page or Post into another.