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

Content Holder

描述

Separate pieces of content into fragments that you can reuse anywhere on your website.
Group several content holder into a single one to reuse your content more easily.

1.0.1

  • Fix WP_Widget deprecated notice
  • Broaden query to all post types
  • Remove wpautop by default

1.1.0

  • Add content holder block support

屏幕截图

  • You can add the content holder widget to any sidebar
  • Modify content holder intuitively and seamlessly like any other content
  • Easily add content holder to other parts of the site with a button
  • Choose the content holder from a list to insert the shortcode

安装

  1. Upload content-holder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Create content holders from the admin page and use them in your theme through the content_holder shortcode or widget.
  4. When creating or editing a page, post or any custom type your can choose the content holder you want to add and insert it directly in the editor.

常见问题

How do I display a content holder

First create a content holder and add your content inside. Now go in a post or a page and select the content holder from the dropdown.

Can you add content holder inside content holder

Yes. It’s possible to make content holder act as a group and render multiple content holder

Is there a shortcode available for developers?

Yes. The content_holder shortcode supports a slug and id attribute. Simply provide the post_name as the slug or the ID to the shortcode.

[content_holder id=2|slug=“post_name”]

评价

阅读所有2条评价

贡献者及开发者

「Content Holder」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Content Holder」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

1.0

  • Initial release