Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为我的项目使用魔术字段插件并创建了两个相关的类型字段,我想获得选定的帖子/页面 ID。请帮助我,我被困在这里。
在循环内你可以说:
<?php echo get('field_name') ?>
将 field_name 替换为您的字段名称。这应该打印它的内容。