[memb_include_post] / [memb_include_page] / [memb_include_partial]

OTHER DOCS Available

Summary

Allows you to insert content or metadata from a page, post or partial into the current position of the shortcode. The shortcodes are synonymous and have no real difference. You can identify the content by post id, or by title.

Shortcode Examples

[memb_include_partial post_id="48"]
[memb_include_post post_id="246"]
[memb_include_page post_id="49"]

partial-id

Example Usage

[memb_include_post post_id="46" field="post_date_gmt"]
[memb_include_post post_id="46" txtfmt="strtoupper"]
[memb_include_page post_id="46"]

Shortcode Parameters​

post_id: The ID ofthe post to include

txtfmt: A text processing function that will be applied on the output (?)

 

Shortcode Attributes

Conditional: No (?)
Nestable: No (?)
Accepts formatting: Yes (?)
Capturable: No (?)

Additional Information

Take care to not recursively include pages. The default field to return is “post_content”, additional fields are: 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 (string) The last modified datetime of the post (YYYY-MM-DD HH:MM:SS)

post_modified_gmt (string) The last modified GMT date/time of the post (YYYY-MM-DD HH:MM:SS)

post_content_filtered (string) post_parent (integer) The parent post’s ID (for attachments, etc) guid (string) A link to the post.

Note: One cannot rely upon the GUID to be the permalink (as it previously was in pre-2.5), Nor can you expect it to be a valid link to the post. It’s merely a unique identifier, which so happens to be a link to the post at present. menu_order (integer)

post_type (string) (post|page|attachment)

post_mime_type (string) Mime Type (for attachments, etc)

comment_count (integer) Number of comments

9 ways to add more value to your membership site

[memb_include_post / memb_include_page / memb_include_partial]

This Applies To