Category Meta plugin
开发者 |
josecoelho
Randy Hoyt
steveclarkcouk
Vitaliy Kukin
Eric Le Bail
Tom Ransom
|
更新时间 |
2014年4月25日 02:09 |
捐献地址: |
去捐款 |
PHP版本: |
2.8 及以上 |
WordPress版本: |
3.4.2 |
详情介绍:
This plugins add meta data to the wordpress categories and terms.
It Creates a wp-termsmeta table to store the entered meta.
It adds input fields to the category and other term administration interface to enter the meta values.
It provides functions to retrive / create / update / delete the category and terms meta.
It can be used to add meta to custom taxonomies (terms).
This plugin has been tested with WP2.8.6 and WPmu2.8.6 and WP3.3.1
安装:
- Unzip into your
/wp-content/plugins/
directory. If you're uploading it make sure to upload
the top-level folder. Don't just upload all the php files and put them in /wp-content/plugins/
.
- Activate the plugin through the 'Plugins' menu in WordPress
- Go to your Administration interface in the "Settings" menu a new "Category Meta" page is created.
Configure the meta you want to use.
- go to your Administration interface, in the "Category" menu -> new fields are displayed in the category creation/modification form with the meta you configured.
- That's it!
- you can use the folowing functions into your templates to retreive 1 meta:
if (function_exists('get_terms_meta')) { $metaValue = get_terms_meta($category_id, $meta_key); }
- you can use the folowing functions into your templates to retreive all meta:
if (function_exists('get_all_terms_meta')) { $metaList = get_all_terms_meta($category_id); }