在WordPress的模板主题插件开发中,我们使用Advanced Custom Fields(ACF)插件设置自定义分类法的自定义字段时,在模板或插件中可以使用如下代码来获取值
get_field('bg_img', $term->taxonomy.'_'.$term->term_id);
在WordPress的模板主题插件开发中,我们使用Advanced Custom Fields(ACF)插件设置自定义分类法的自定义字段时,在模板或插件中可以使用如下代码来获取值
get_field('bg_img', $term->taxonomy.'_'.$term->term_id);
链接到文章: https://www.gkxyz.com/wordpress-advanced-custom-fieldsacfhuoqu-zidingyifenleifa-zidingyiziduan.html
Deploy more with Linux virtual machines, global infrast […]
Helping millions of developers easily build, test, mana […]
主机商介绍:RAKsmart是知名的美国服务器租用商,包括美国站群服务器、美国cn2服务器、香港服务器等热门产 […]
阿里云——阿里巴巴集团旗下公司,是全球领先的云计算及人工智能科技公司之一。提供免费试用、云服务器、云数据库、云 […]
Our web hosting is trusted by more than 2,800,000 domai […]
Vultr Global Cloud Hosting – Brilliantly Fast SSD […]
评论已关闭