给WordPress自定义字段加判断
建站知识 2021-09-22
如果有自定义字段,显示自定义字段,如果没有自定义字段,不显示自定义字段。
<?php if (get_field('wodepress')): ?>
<?php the_field('wodepress'); ?>
<?php endif; ?>
建站知识 2021-09-22
如果有自定义字段,显示自定义字段,如果没有自定义字段,不显示自定义字段。
<?php if (get_field('wodepress')): ?>
<?php the_field('wodepress'); ?>
<?php endif; ?>
Build an efficient and multi-language independent foreign trade website for enterprises
为企业提供全方位的外贸网站建设解决方案,助力中国企业走向世界