如何在 Woocommerce 产品编辑器 (wp-admin) 中显示 acf 字段?

问题描述 投票:0回答:1

ACF 字段不会显示在产品编辑器页面上。我进入“所有产品”页面,在产品选项中单击“编辑”,然后进入该页面。在“主”选项卡中,我向下滚动并没有看到任何 ACF 字段来向其中添加数据。 版本 WordPress 6.6.1、Woocommerce 8.7.0、ACF 6.2.2

我创建了一组字段,并在该组字段的位置设置中指定了以下内容: “帖子类型等于产品”(“Тип записи равно товар”):

enter image description here

这就是我所说的。

下面,正如您在 ACF 产品编辑器页面上看到的,未显示用于数据输入的字段:

enter image description here

那么可能是什么问题呢?

这是我的 ACF 字段和显示设置:

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

wordpress woocommerce product advanced-custom-fields
1个回答
0
投票

此问题的解决方案是将 Woocommerce 更新到版本 9.1.4

Then read the material at this link:
https://developer.woocommerce.com/docs/how-to-fix-outdated-woocommerce-templates

You will need to go to status>system status and scroll to the "Templates" block and see if there are any templates in your current theme that need to be changed/changed their location/content (To do this, you should also go to the "Plugins>plugin editor" section after installing the new version of Woocommerce and see what you need to change in your templates and what to leave unchanged)

After the manipulations done, go to the product editor and, depending on where you set the location of the ACF fields in the ACF settings in the "Presentation" tab, a field for filling in data will be displayed
© www.soinside.com 2019 - 2024. All rights reserved.