Easily include WordPress Post / Page content with in another WordPress post/page using a simple shortcode. WP Advanced Include can include post conte …
Author: | The Missing Code (profile at wordpress.org) |
WordPress version required: | 3 |
WordPress version tested: | 3.4.2 |
Plugin version: | 1.0 |
Added to WordPress repository: | 11-11-2012 |
Last updated: | 11-11-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 2 |
Plugin URI: | |
Total downloads: | 6 021 |
Active installs: | 50+ |
Click to start download |
WP Advanced Include creates an [include] shortcode which can be used to add content from any Post or Page on your site including Post Content, Post Excerpt and Post Meta
Shortcode Attributes:
content_id = [int] The id of the post or page you wish to include content from.
content_limit = [int] Limits the content if required, set to a value less than 1 to remove limiting – Default 0
content_limit_type [“words”|”chars”] Sets the content limit to be words or characters – Default “words”
content_limit_append [string|empty string] Text to be appended to the end of the content if limited – Default “&hellip”
content_type [post_content|post_excerpt|post_title|”meta name”] The content type to be included, if meta name, specify meta name. – Default “post_content”
do_shortcode [true|false] Specify whether to parse shortcodes of not – Default “true”
Caution
The use of [include] to include itself with do_shortcode set to true will create an infinite loop, use wisely.
Samples
simple include of post content
[include content_id=x]
include first 50 words of post content
[include content_id=x content_limit=50]
include first 150 characters of post content
[include content_id=x content_limit=150 content_limit_type=chars]
*include “custom_meta_name” meta from post X
[include content_id=x content_type=”custom_meta_name”]
FAQ
ChangeLog