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

Meta Shortcode

描述

The Meta Shortcode plugin allows you to easily insert meta values into your posts or pages without having to edit a theme file.

Rather than having to use get_post_meta inside of your theme files or another plugin, you can just use the shortcode [ metafield ].

For more info, you can visit my website.

安装

Upload the folder inside the zip to your /wp-content/plugins/ folder or, better, use the plugin pages inside WordPress.

Usage

Insert the shortcode [ metafield ] where you want your info to show up.

You can use the following options.

  • field The meta field to display. This is the only required attribute.
  • sorted If there are multiple values in the meta field, setting this to true will sort them alphabetically prior to output. If false, or left empty, then they will be output in the order entered in WordPress.
  • before Any text or HTML to display before the meta field information. Defaults to blank if there is only one record and <ul> if there are multiple meta records.
  • after Text or HTML to display after the meta field info. Same as before for defaults.
  • empty Text or HTML to display if the meta field isn’t found. Defaults to empty which means that nothing is displayed if the meta isn’t available.

常见问题

New plugin, no FAQs yet.

评价

此插件暂无评价。

贡献者及开发者

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

贡献者

帮助将「Meta Shortcode」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

0.1

  • Initial release