Description
Allows you to insert content or metadata from a post, page, or partial into the current position of the shortcode. The shortcodes [memb_include_post], [memb_include_page], and [memb_include_partial] are synonymous and have no real difference. You can identify the content by post ID or by title.
Shortcode Examples
Basic usage:
[memb_include_partial post_id="48"]
[memb_include_post post_id="246"]
[memb_include_page post_id="49"]

Retrieving a specific field:
[memb_include_post post_id="46" field="post_date_gmt"]
Applying text formatting:
[memb_include_post post_id="46" txtfmt="strtoupper"]
Shortcode Parameters
id | The post ID (numeric), slug, or title of the content to include. (Required) |
|---|---|
post_id | Alias for id. Maintained for backward compatibility. |
field | The post field to retrieve. Default: post_content. |
type | Post type to include. Auto-detected from the shortcode tag: [memb_include_partial] uses 'partials', [memb_include_page] uses 'page', all others use 'post'. |
length | Maximum character length of the output. Set to 0 for no limit. Default: 0. |
tag_id | Comma-separated tag IDs. The contact must have at least one of the specified tags for the shortcode to display content. |
bypass_permissions | Set to 1 to bypass access and publish checks. Default: 0. |
txtfmt | A comma-separated list of text processing functions to apply to the output. |
capture | Captures the shortcode output and routes it to a variable for later use. |
Additional Information
Take care not to recursively include pages. The default field to return is post_content. The following post fields are available:
IDpost_authorpost_datepost_date_gmtpost_contentpost_titlepost_categorypost_excerptpost_statuscomment_statusping_statuspost_passwordpost_nameto_pingpingedpost_modifiedpost_modified_gmtpost_content_filteredpost_parentguidmenu_orderpost_typepost_mime_typecomment_count
Shortcode Attributes
| Conditional | No |
|---|---|
| Nestable | No |
| Accepts formatting | Yes |
| Capturable | No |