ActiveCampaign
Also available forKeap

[memb_include_post]

Summary
Allows you to insert content or metadata from a post, page, or partial into the current position of the shortcode.

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"]

Partial editor showing the post ID

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

idThe post ID (numeric), slug, or title of the content to include. (Required)
post_idAlias for id. Maintained for backward compatibility.
fieldThe post field to retrieve. Default: post_content.
typePost type to include. Auto-detected from the shortcode tag: [memb_include_partial] uses 'partials', [memb_include_page] uses 'page', all others use 'post'.
lengthMaximum character length of the output. Set to 0 for no limit. Default: 0.
tag_idComma-separated tag IDs. The contact must have at least one of the specified tags for the shortcode to display content.
bypass_permissionsSet to 1 to bypass access and publish checks. Default: 0.
txtfmtA comma-separated list of text processing functions to apply to the output.
captureCaptures 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:

  • ID
  • post_author
  • post_date
  • post_date_gmt
  • post_content
  • post_title
  • post_category
  • post_excerpt
  • post_status
  • comment_status
  • ping_status
  • post_password
  • post_name
  • to_ping
  • pinged
  • post_modified
  • post_modified_gmt
  • post_content_filtered
  • post_parent
  • guid
  • menu_order
  • post_type
  • post_mime_type
  • comment_count

Shortcode Attributes

ConditionalNo
NestableNo
Accepts formattingYes
CapturableNo