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

Content Widget

描述

With this plugin you can display the content of a post (of any type) in a widget area. You can also limit number of words, change the delimiter and add a read more link to it.

This means, in a widgetized theme, you can move the content around and arrange it however you like, and even reuse it in multiple places. Also comes in handy if you want your client to be in charge of the content, without having access to the Widgets manager.

Since 0.3 you can also query for a random post, or the latest post and limit it by category and offset.

屏幕截图

  • Widget options

安装

  1. Upload the whole plugin directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Goto Appearance -> Widgets and add some Content Widget.
  4. Enjoy!

评价

此插件暂无评价。

贡献者及开发者

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

贡献者

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

对开发感兴趣吗?

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

更新日志

0.4.2

  • Compatibility with SiteOrigin Page Builder and Themify Builder plugins

0.4.1

  • Fix notice and warning messages
  • Add option to show featured image

0.4

  • Code refactor
  • i18n support

0.3

  • Improvements suggested by Carsten Bach here: https://gist.github.com/3866525. Thanks Carsten!
  • Added the ability to query latest post or random post
  • Added the category and offset options

0.2.1

  • Replaced limit_words method with the built-in wp_trim_words function

0.2

  • Added templating capability
  • Fixed a left over print command which was intended for debugging purposes 🙂

0.1.2

  • Fixed a minor bug concerning WP_Query and post_type parameter

0.1.1

  • Added the option to hide the title