Include

Include

Wordpress plugin

Install on Wordpress

App Details

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.

Pricing

Starting from $0 per month.

Check Out the Payment Method Logos Widget

By Common Ninja

Payment Method LogosTry For Free!

App Info

Rating

Reviewers

7 reviews

Tags

page
pages
post
shortcode
shortcodes

Developed By

Michael Flynn

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Forms

Forms plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Comments

Comments plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Maps

Maps plugins for Wordpress

Security

Security plugins for Wordpress

Translation

Translation plugins for Wordpress

Ads

Ads plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Chat

Chat plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Membership

Membership plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Contact

Contact plugins for Wordpress

Comments

Comments plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Common Ninja Apps

Some of the best Common Ninja plugins for Wordpress

Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

Payment Method Logos for Wordpress logo

Payment Method Logos

Show payment method logos that highlight accepted payment options, build trust at checkout, and help visitors feel confident completing their purchase.

News Ticker for Wordpress logo

News Ticker

Use a news ticker to display headlines and updates that highlight key information and keep users informed in real time.

Count-Up Clock for Wordpress logo

Count-Up Clock

Track time since important events with a count up clock that displays elapsed days and hours and keeps visitors engaged.

Vimeo Slider for Wordpress logo

Vimeo Slider

Show Vimeo videos with a Vimeo slider that displays clips in a smooth slider to boost engagement and keep visitors watching.

Restaurant Menu List for Wordpress logo

Restaurant Menu List

Create a clear restaurant menu list that helps visitors explore dishes easily, understand key details, and make confident ordering decisions that support conversions.

Social Share Buttons for Wordpress logo

Social Share Buttons

Add social share buttons so visitors share content to major networks, boost engagement, and drive more referral traffic.

Image Hover Effects for Wordpress logo

Image Hover Effects

Use image hover effects to add animations, highlight key visuals, and keep visitors engaged with dynamic image reveals.

Strip Button for Wordpress logo

Strip Button

Add a Stripe Button to your website to give customers a fast, trusted checkout experience.

Countdown to Download for Wordpress logo

Countdown to Download

Use a countdown to download widget that reveals files after the timer ends, builds anticipation, and guides visitors toward higher engagement.

Facebook Feed for Wordpress logo

Facebook Feed

Show Facebook posts in a live Facebook feed that keeps content fresh, boosts social proof, and helps visitors engage more with your brand.

Interactive Video Player for Wordpress logo

Interactive Video Player

Add interactive video overlays with links, product cards, and buttons that appear on top of your videos to boost engagement and guide user actions.

Events Calendar for Wordpress logo

Events Calendar

Add an events calendar to your site so visitors can view upcoming activities, improving engagement and event visibility.

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms