這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Details King Pro

外掛說明

Stay up-to-date with the latest by following @kingproplugins on Twitter, KingProPlugins on Facebook or King Pro Plugins on Google+

Built as a continuation of the blog posts on King Pro Plugins – Building a simple WordPress Plugin

Details King Pro creates an easy way to have global values that can be used site with either via the provided shortcode or
via the PHP functions. Fields dynamically created by you can have a variety of values such as single textbox plain text value, block textarea plain text value, WYSIWYG content
value, file upload (such as a logo), or a date picker field.

If you have any suggestions or would like to see a feature in the plugin, please let me know in the support forum.

Any issues you are having, I’d also love to know, so again, please let me know using the support forum.

Check out the King Pro Plugins range

How To Use

Use Shortcodes

Shortcodes can be used in any page or post on your site. By default:
[dkp k=”your-field-key”]
If you would like to display an error if the key is not found:
[dkp k=”your-field-key” e=true]
To add this into a template, just use the “do_shortcode” function:
<?php if (function_exists(‘dkp_func’)) echo do_shortcode(“[dkp k=’your-field-key’]”); ?>
Of course, why do that when you have functions you can use:
<?php the_dkp_field($field_key, $error); ?>
This will print the value right there, or if you need to use the variable prior to printing it, use:
<?php $value = get_dkp_field($field_key, $error); ?>

Having Trouble? Get support either on the support forums here or at @kingproplugins on Twitter, KingProPlugins on Facebook or King Pro Plugins on Google+

螢幕擷圖

  • Details King Pro types of possible fields
  • How easy it is to create a new field

安裝方式

  1. Download and unzip the zip file onto your computer
  2. Upload the ‘details-king-pro’ folder into the /wp-content/plugins/ directory (alternatively, install the plugin from the plugin directory within the admin)
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Create your first field within the ‘Details King Pro’ section of the admin
  5. Within the WYSIWYG editor, place the short code ‘[dkp k=”your-field-key”]’ or within the code, <?php the_dkp_field(‘your-field-key’); ?>

Having Trouble? Get support either on the support forums here or at @kingproplugins on Twitter, KingProPlugins on Facebook or King Pro Plugins on Google+

常見問題集

After activating this plugin, my site has broken! Why?

Nine times out of ten it will be due to your own scripts being added above the standard area where all the plugins are included. If you move your javascript files below the function, “wp_head()” in the “header.php” file of your theme, it should fix your problem.

Have a question thats not listed? Get support either on the support forums here or at @kingproplugins on Twitter, KingProPlugins on Facebook or King Pro Plugins on Google+

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Details King Pro〉的開發相關工作。

參與者

將〈Details King Pro〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • Initial