我遇到了问题。我通过ACF wordpress插件创建了一个自定义字段。它是自定义帖子类型类别的字段(可以说它是对该类别的附加描述)。我试图通过这样的代码,将其添加到我的网页:在页面上显示ACF字段
$return_html.= '<h2 class="ppb_menu_title" ';
$return_html.= '>'.$menu_term->name.'</h2><br class="clear"/><br/>';
$displaytitle = the_field('category_subtitle');
$return_html.= '<div class="subtitledesc">'.$displaytitle.'</div>';
下面的代码是代码的整页,你可以在这里找到[行1712年至1715年]的一部分: https://codeshare.io/50QzqL
什么我做错了?
当你传递其中显示的内容的其余部分? – iamwtk