当类别已应用产品时,WordPress产品类别的高级自定义字段消失了
我可以成功地将我的高级自定义字段显示在没有应用产品的类别页面上。但是,一旦我将产品应用于类别,则自定义字段停止在前端显示。 有什么想法我如何保留自定义字段显示并在类别页面上显示产品列表? 示例页: 类别示例示例url
当不应用产品时可行的示例代码:
<?php the_field(‘categtest1’); ?>
<?php the_field(‘richt’); ?>
I can successfully get my Advanced Custom Fields to display on Category pages that don’t have Products applied to them. But as soon as I apply products to the category, then the Custom Fields stop displaying on the frontend.
Any ideas how I can retain the Custom Fields display and also show product listings on the Category pages?
Example page:
Category example URL
Example code that works when no products are applied:
<?php the_field(‘categtest1’); ?>
<?php the_field(‘richt’); ?>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论