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

WP Custom Data

描述

WP Custom Data is a WordPress widget which adds custom fields in your WordPress site. The custom fields can be simply usable in every section of your theme or in every plugin. For example if you want to add your address to the footer but the theme has not got an address field, you can simply install the WP Custom Data, enable the plugin, go in the widget section, add the WP Custom Data in any section (no matter where), write the address in one or more rows and save. Now WordPress knows your address and you can use this fields wherever you want. Do you want to use it in the footer? Open footer.php and write the PHP code:

$list = get_option('wp-custom-data'); 

where you want then, to display the address (the custom fields), use

echo $list['rowX']; 

where X is the number of the row in the WP Custom Data where you have written the address.

屏幕截图

  • WP Custom Data Widget

安装

How to Install

  1. Upload the entire ‘wp-custom-data’ folder to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Use WP Custom Data in the Widget section

How to Use

  1. Add the widget in any section (e.g. Default Sidebar)
  2. Write your data in the rows
  3. To display your data, use the PHP code:
  4. $list = get_option('wp-custom-data');
  5. echo $list['rowX'];
  6. where X is the number of the row you want display

常见问题

Do you have questions or issues about WP Custom Data?

Does WP Custom Data support Multisite network?

Yes, it supports multisite network

Is there a support forum?

Yes, where Support Forum

评价

阅读所有1条评价

贡献者及开发者

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

贡献者

将“WP Custom Data”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.1

  • Release Date – 6th November, 2015 *
  • First Release