跳到内容

Details King Pro

v1.0

Ash Durham · 2013年11月22日 上架

Details King Pro allows you to create global values for your site as you need them

正在使用
10+
评分
暂无
累计下载
1,998
最近更新
2013年11月22日
需要 WordPress 3.0.1+已测试到 3.7.41

贡献者

截图

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

—

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+

—

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums