-2
我已创建自定义字段自定义分类自定义字段,我想在MySQL查询中包含的phpMyAdmin custom_term_meta
(创建新场)“网络”获得分类名称。从<a href="https://pippinsplugins.com/adding-custom-meta-fields-to-taxonomies/" rel="nofollow">this example</a></p> <p>获得SQL
我已创建自定义字段自定义分类自定义字段,我想在MySQL查询中包含的phpMyAdmin custom_term_meta
(创建新场)“网络”获得分类名称。从<a href="https://pippinsplugins.com/adding-custom-meta-fields-to-taxonomies/" rel="nofollow">this example</a></p> <p>获得SQL
的WordPress 4.4及以上已期限元建于:https://www.smashingmagazine.com/2015/12/how-to-use-term-meta-data-in-wordpress/
但在你的例子你是存储在wp_options表项元。你应该通过get_option()函数的值是这样的:
echo get_option("taxonomy_$term_id");
...在$ term_id是你想获得元数据术语的ID。