AI助手支持GPT4.0
Plugin to manage and use custom meta fields within builtin and custom taxonomies.
插件,用于管理和使用内置和自定义分类法中的自定义元字段。
Simply add the desired fields by navigating to Settings > Category meta in your WordPress administration panel.
只需在WordPress管理面板中导航至“设置”>“类别”元,即可添加所需的字段。 p>
/wp-content/plugins/
/ wp-content / plugins / code>目录。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/.
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/.
不要只是上传所有的php文件并将它们放在 / wp-content / plugins / code>中。 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Go to your Administration interface in the “Settings” menu a new “Category Meta” page is created.转到“设置”菜单中的“管理”界面,将创建一个新的“类别元”页面。Configure the meta you want to use.配置您要使用的元。 li>go to your Administration interface, in the “Category” menu -> new fields are displayed in the category modification form with the meta you configured.转到管理界面,在“类别”菜单中->新字段会显示在类别修改表单中,其中包含您配置的元。 li>That’s it!就是这样! li>you can use the folowing functions into your templates to retreive 1 meta:您可以在模板中使用以下功能来检索1个元数据: p>if (function_exists(‘get_terms_meta’))如果(function_exists('get_terms_meta')){ { $metaValue = get_terms_meta($category_id, $meta_key);$ metaValue = get_terms_meta($ category_id,$ meta_key); }} p> li>you can use the folowing functions into your templates to retreive all meta:您可以在模板中使用以下功能来检索所有元数据: p>if (function_exists(‘get_all_terms_meta’))如果(function_exists('get_all_terms_meta')){ { $metaList = get_all_terms_meta($category_id);$ metaList = get_all_terms_meta($ category_id); }} p> li>
/ wp-content / plugins / code>中。 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Go to your Administration interface in the “Settings” menu a new “Category Meta” page is created.转到“设置”菜单中的“管理”界面,将创建一个新的“类别元”页面。Configure the meta you want to use.配置您要使用的元。 li>go to your Administration interface, in the “Category” menu -> new fields are displayed in the category modification form with the meta you configured.转到管理界面,在“类别”菜单中->新字段会显示在类别修改表单中,其中包含您配置的元。 li>That’s it!就是这样! li>you can use the folowing functions into your templates to retreive 1 meta:您可以在模板中使用以下功能来检索1个元数据: p>if (function_exists(‘get_terms_meta’))如果(function_exists('get_terms_meta')){ { $metaValue = get_terms_meta($category_id, $meta_key);$ metaValue = get_terms_meta($ category_id,$ meta_key); }} p> li>you can use the folowing functions into your templates to retreive all meta:您可以在模板中使用以下功能来检索所有元数据: p>if (function_exists(‘get_all_terms_meta’))如果(function_exists('get_all_terms_meta')){ { $metaList = get_all_terms_meta($category_id);$ metaList = get_all_terms_meta($ category_id); }} p> li>
Configure the meta you want to use.
配置您要使用的元。 li>
you can use the folowing functions into your templates to retreive 1 meta:
您可以在模板中使用以下功能来检索1个元数据: p>
if (function_exists(‘get_terms_meta’))
如果(function_exists('get_terms_meta'))
{
$metaValue = get_terms_meta($category_id, $meta_key);
$ metaValue = get_terms_meta($ category_id,$ meta_key);
}
} p>
li>
you can use the folowing functions into your templates to retreive all meta:
您可以在模板中使用以下功能来检索所有元数据: p>
if (function_exists(‘get_all_terms_meta’))
如果(function_exists('get_all_terms_meta'))
$metaList = get_all_terms_meta($category_id);
$ metaList = get_all_terms_meta($ category_id);
ol>
原文出处:http://www.sanshu.cn/a/9802.html
群主管理都是支付大佬