该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

WP Advanced Include

描述

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

安装

  1. Download the plugin to your computer
  2. Extract the contents
  3. Upload (via FTP) to a sub folder of the WordPress plugins directory
  4. Activate the plugin in the admin dashboard.

常见问题

No other questions yet!

🙂

评价

此插件暂无评价。

贡献者及开发者

“WP Advanced Include” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“WP Advanced Include”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0

  • Initial Release
  • No changes